![]() Declare it as envvar or define a default value.'.format(option))ĭecouple.UndefinedValueError: not found. :\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 ![]() # 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') # options.add_argument('-ignore-certificate-errors')ĭriver = webdriver.Chrome("/Users/kalle/Downloads/chromedriver83", chrome_options=options) # 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 Previous Post Next Post from selenium import webdriverįrom import Keys
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |