![]() Declare it as envvar or define a default value.Īny help would be much appreciated, I am unsure why decouple is not working. Declare it as envvar or define a default value.'.format(option))ĭecouple.UndefinedValueError: not found. This is the error I get in VS code: :\Users\user>python c:/chromedriver_win32/movie-tickets1.pyĬ:/chromedriver_win32/movie-tickets1.py:15: DeprecationWarning: use options instead of chrome_optionsĭriver = webdriver.Chrome(executable_path=r'C:\chromedriver_win32\chromedriver.exe', chrome_options=options)ĭevTools listening on ws://127.0.0.1:29442/devtools/browser/872d4312-b51d-4a38-bc1b-3b80495950įile "c:/chromedriver_win32/movie-tickets1.py", line 17, in įile "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\decouple.py", line 199, in _call_įile "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\decouple.py", line 83, in _call_įile "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\decouple.py", line 68, in get When I run the program it opens chrome however I get a blank web page with nothing on there but some text which says "data." that is all nothing else. running version 84 stable chrome web browser.I have all the correct programs installed: # select the movie you want (should be more specific than just selecting the first one but whateva)īutton = driver.find_element_by_xpath('/html/body/div/main/div/div/div/div/div/div/div/div/div/div/ul/li/ul/li/div/div/div/span/a')īutton = driver.find_element_by_xpath('/html/body/div/main/div/div/div/div/div/div/section/div/div/div/ul/li/ul/li/div/span/span/span/span')īutton = driver.find_element_by_xpath('/html/body/div/main/div/div/div/div/div/div/section/div/div/div/button')īutton = driver.find_element_by_xpath('/html/body/div/main/div/div/div/div/div/div/section/div/div/button')īutton = driver.find_element_by_xpath('/html/body/div/main/div/div/div/div/div/div/section/div/div/div/button/span') # for some odd reason you need to reload the site for it to load.īutton = driver.find_element_by_xpath('/html/body/div/div/div/div/div/div/div/ul/li/label/input')īutton = driver.find_element_by_xpath('/html/body/div/div/div/div/div/span/button')īutton = driver.find_element_by_xpath('/html/body/div/nav/div/div/div/ul/li/a') We strive not to remove a deprecated feature from future releases to make upgrades easier. No new changes will be done, including those related to addressing inter-operability with new features. When a feature is marked deprecated, it means: The feature is in maintenance mode only. # options.add_argument('-ignore-certificate-errors')ĭriver = webdriver.Chrome("/Users/kalle/Downloads/chromedriver83", chrome_options=options) Deprecated features should not be used in new applications. # info on the element that you want and you can copy the full xpath. ![]() # by pressing cmd shift c and then you can use your mouse to find the # the way to locate the button or thing you want on a website in chrome is We now do all the checks for you in the background.Trying to run this code on my windows 10 machine from selenium import webdriverįrom import Keys
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |