TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Error

    Windows
    5
    9
    883
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Lexar's
      last edited by

      Re: Open Specific Netflix Movie with Alexa

      @Russ can you help me error? usb_device_handle_win.cc:1050 Failed to read descriptor from node connection: A opera o de E/S foi anulada devido a uma sa da de thread ou a uma requisi o de aplicativo. (0x3E3)

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @Lexar's
        last edited by

        @lexar-s, how are you getting that error? Are you using selenium?

        Google translated that as, "The I/O operation was aborted due to a thread exit or an application request. (0x3E3)"

        Russell VanderMey

        L 1 Reply Last reply Reply Quote 0
        • L
          Lexar's @Russ
          last edited by Lexar's

          @russ said in Error:

          @lexar-s, how are you getting that error? Are you using selenium?

          Google translated that as, "The I/O operation was aborted due to a thread exit or an application request. (0x3E3)"

          @Russ Yes, I am but when I put the PATH path "C:\Users\Lexar's\Documents\ChromeDriver\ChromeDriver.exe" it doesn't work and when I leave it (PATH) driver = webdriver.Chrome(PATH) it works, but with USB error The I/O operation was aborted due to a thread exit or an application request. (0x3E3
          [7688:10380:0128/113046.882:ERROR:chrome_browser_main_extra_parts_metrics.cc(227)] START: ReportBluetoothAvailability(). If you don't see the END: message, this is crbug.com/1216328.
          [7688:10380:0128/113046.882:ERROR:chrome_browser_main_extra_parts_metrics.cc(230)] END: ReportBluetoothAvailability()
          [7688:10380:0128/113046.885:ERROR:chrome_browser_main_extra_parts_metrics.cc(235)] START: GetDefaultBrowser(). If you don't see the END: message, this is crbug.com/1216328.
          [7688:5364:0128/113046.886:ERROR:device_event_log_impl.cc(214)] [11:30:46.886] USB: usb_device_handle_win.cc:1050 Failed to read descriptor from node connection: Um dispositivo conectado ao sistema nÒo estß funcionando. (0x1F)
          [7688:5364:0128/113046.887:ERROR:device_event_log_impl.cc(214)] [11:30:46.887] USB: usb_device_handle_win.cc:1050 Failed to read descriptor from node connection: Um dispositivo conectado ao sistema nÒo estß funcionando. (0x1F)
          [7688:10380:0128/113046.895:ERROR:chrome_browser_main_extra_parts_metrics.cc(239)] END: GetDefaultBrowser()

          What is wrong with my python script?

          tuicemenT 1 Reply Last reply Reply Quote 0
          • tuicemenT
            tuicemen @Lexar's
            last edited by

            @lexar-s the USB error suggest a driver issue.
            Windows installs what it thinks is the best driver for devices and these are not always the ones that work.
            What USB devices do you have plugged into your PC?
            Perhaps if you posted your full python script it would help @russ or others figure out what else may be a issue.

            L 1 Reply Last reply Reply Quote 0
            • L
              Lexar's @tuicemen
              last edited by Lexar's

              @tuicemen said in Error:

              @lexar-s the USB error suggest a driver issue.
              Windows installs what it thinks is the best driver for devices and these are not always the ones that work.
              What USB devices do you have plugged into your PC?
              Perhaps if you posted your full python script it would help @russ or others figure out what else may be a issue.

              Ok'

              from selenium import webdriver
              from selenium.webdriver.common.keys import Keys
              from selenium.webdriver.common.by import By
              from selenium.webdriver.support.ui import WebDriverWait
              from selenium.webdriver.support import expected_conditions as EC
              import time
              import sys
              
              if len(sys.argv) == 2:
                  movie = sys.argv[1]
              else:
                  movie = ' '.join(sys.argv[1:])
              
              PATH = r"C:\Users\Lexar's\Documents\ChromeDriver\ChromeDriver.exe"
              
              driver = webdriver.Chrome(PATH)
              
              driver.get("https://www.netflix.com/br/login")
              element = driver.find_element_by_name("userLoginId")
              
              element.send_keys("netflix@gmail.com")
              time.sleep(0.2)
              
              element2 = driver.find_element_by_name("password")
              element2.send_keys("netflix")
              time.sleep(0.3)
              element2.send_keys(Keys.RETURN)
              time.sleep(2)
              
              profile = driver.find_element_by_link_text("TELA02")
              profile.click()
              
              time.sleep(3)
              search = driver.find_element_by_class_name("searchBox")
              search.click()
              
              time.sleep(1)
              searchbox = driver.find_element_by_name("searchInput")
              searchbox.send_keys(movie)
              
              time.sleep(0.5)
              searchbox.send_keys(Keys.RETURN)
              
              time.sleep(2)
              scene = driver.find_element_by_xpath("/html/body/div[1]/div/div/div[1]/div/div[2]/div/div/div/div[2]/div/div/div[1]/div/div/div/div/div/div[1]")
              scene.click()
              
              time.sleep(0.5)
              submit = driver.find_element_by_xpath("//button[@class='color-primary hasLabel hasIcon ltr-1jnopvq']")
              submit.click()
              
              time.sleep(5)
              move = driver.find_element_by_xpath("//button[@class='touchable PlayerControls--control-element nfp-button-control default-control-button button-nfplayerBack tooltip-button tooltip-button-pos-center tooltip-button-align-right']")
              move.send_keys(Keys.TAB)
              
              time.sleep(0.5)
              fullscreen = driver.find_element_by_xpath("//button[@class='touchable PlayerControls--control-element nfp-button-control default-control-button button-nfplayerFullscreen']")
              fullscreen.click()
              
              

              Another detail, she doesn't search for the movie or series through the script I made

              L tuicemenT 2 Replies Last reply Reply Quote 0
              • L
                Lexar's @Lexar's
                last edited by

                @tuicemen or @Russ can you tell me if there's something wrong with my python script?

                tuicemenT 1 Reply Last reply Reply Quote 0
                • tuicemenT
                  tuicemen @Lexar's
                  last edited by

                  @lexar-s I don't use Selenium, Chrome or Netflix on my PC.
                  However since your getting errors I'd suggest you start by running some tests with Selenium and Chrome to make sure you have that part setup correctly.
                  https://www.browserstack.com/guide/run-selenium-tests-using-selenium-chromedriver

                  1 Reply Last reply Reply Quote 0
                  • tuicemenT
                    tuicemen @Lexar's
                    last edited by tuicemen

                    @lexar-s you can also refer to this thread for help: https://www.triggercmd.com/forum/topic/115/open-specific-netflix-movie-with-alexa compare your script with the python script posted there.

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      fostercarly @tuicemen
                      last edited by

                      You can test if it actually is in the Python PATH, if you open a cmd and type in chromedriver and hit Enter. If Starting ChromeDriver 2.15.322448 is appearing, the PATH is set appropriately and there is something else going wrong. Then try the following:

                      Download ChromeDriver

                      Then you have multiple options:

                      • Add it to your system path
                      • Put it in the same directory as your python script
                      • Specify the location directly via executable_path
                      driver = webdriver.Chrome(executable_path='C:/path/to/chromedriver.exe')
                      

                      Before you add the chromedriver to your path, make sure it's the same version as your browser.

                      If not, you will need to match versions: either update/downgrade you chrome, and upgrade/downgrade your webdriver.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post