Not finding the element on the webpage

0 votes

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)

Dec 31, 2018 in Selenium by Sebastian
• 180 points
64 views
Hello @Sebastian, its okay. Can you share me the code you are using?
Hey @sebastian did you get the answer?

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Selenium

0 votes
2 answers

Unable to Click on an Element in Selenium (Python) even after finding it.

Here, I give you working script which ...READ MORE

answered Sep 19, 2018 in Selenium by Priyaj
• 56,160 points
5,943 views
0 votes
1 answer

Need some advise on the preferred element locators with Selenium WebDriver

Well let's not call it "Hierarchy". But, ...READ MORE

answered Apr 13, 2018 in Selenium by king_kenny
• 3,590 points
73 views
0 votes
2 answers
0 votes
1 answer

Check that the element is clickable or not in Selenium WebDriver

Use Selenium Waits: WebDriverWait ...READ MORE

answered Jun 12, 2018 in Selenium by Meci Matt
• 9,400 points
6,573 views
+1 vote
2 answers
0 votes
1 answer

Installing Selenium Webdriver with Python package

Hey Hemant, for installing Selenium Webdriver with ...READ MORE

answered May 8 in Selenium by Anvi
• 10,310 points
87 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,050 points
259 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
627 views