I’m trying to click an options from a website dropdown menu but I am not able to click.

I am using “xpath” locators for the and I upgraded my chrome to the latest version for chromedriver.

I am using:

  • chrome=68.0.3440.106
  • chromedriver=2.41.578700
  • platform=Linux 4.15.0-30

My traceback info:

traceback (most recent call last):
driver.find_element_by_xpath(u"(//a[contains(text(),'1. Sınıf')]) 
[2]").click()
File "/usr/local/lib/2.7/dist- 
packages//webdriver/remote/webelement.py", line 80, in click
self._execute(Command.CLICK_ELEMENT)
File "/usr/local/lib/2.7/dist- 
packages/selenium/webdriver/remote/webelement.py", line 628, in 
_execute
return self._parent.execute(command, params)
File "/usr/local/lib/2.7/dist- 
packages/selenium/webdriver/remote/webdriver.py", line 320, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/2.7/dist- 
packages/selenium/webdriver/remote/errorhandler.py", line 242, in 
check_response
raise exception_class(, screen, stacktrace)
: Message: element not `

Thanks in advance.



Source link https://sqa.stackexchange.com/questions/35225/elementnotvisibleexception-message-element-not-visible-selenium-in-python

LEAVE A REPLY

Please enter your comment!
Please enter your name here