I apologize if this is my second time posting this question, but I don't think it posted the first time.
I have been trying this:
driver.find_element_by_link_text('Beats Headphones').click()
But get an error, which I will show below. From what I can understand it is not finding the element on the webpage even though I am copying and pasting the exact text from the webpage. I even tried
driver.find_element_by_partial_link_text('Product Here')
with nothing being found. I'd link you the website but it requires a login. If theres a way to send that privately I would be more than happy to send it. Thank you again. Here is the error:
Traceback (most recent call last):
File "bot.py", line 45, in <module>
order()
File "bot.py", line 24, in order
driver.find_element_by_link_text('9.99').click()
File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 428, in find_element_by_link_text
return self.find_element(by=By.LINK_TEXT, value=link_text)
File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 978, in find_element
'value': value})['value']
File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"link text","selector":"9.99"}
(Session info: chrome=71.0.3578.98)
(Driver info: chromedriver=2.45.615355 (d5698f682d8b2742017df6c81e0bd8e6a3063189),platform=Mac OS X 10.13.6 x86_64)