I have looked at the Selenium documentation and can not find an example of clicking on an element. I inspected an element named attatchments.
Everytime I attempt to click the element Python gives me an error usually one of these:
{'using': by, 'value': value})['value'] File "C:\Python27\lib\site-packages\selenium-2.24.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 155, in execute self.error_handler.check_response(response) File "C:\Python27\lib\site-packages\selenium-2.24.0-py2.7.egg\selenium\webdriver\remote\errorhandler.py", line 147, in check_response raise exception_class(message, screen, stacktrace) NoSuchElementException: Message: u'Unable to locate element: {"method":"name","selector":"add individuals"}'
Here is the code I am trying:
driver.find_element_by_name("attatchments")
elem.click()