I am trying to enter a comment in the following text box with details as
<input type="text" name="com_data" value="" size="40">
I tried the following:
driver.find_element_by_class_name("Comment:").send_keys("hello")
# driver.find_element_by_name('btnSubmit').click()
# driver.find_element_by_name("com_data").send_keys("hello smirajka")
driver.find_element_by_xpath("//input[@name='com_data']").send_keys("hello")
All of the above attempts failed with error message as:
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//input[@name='com_data']"}
(Session info: chrome=55.0.2883.95)
(Driver info: chromedriver=2.25.426935 (820a95b0b81d33e42712f9198c215f703412e1a1),platform=Mac OS X 10.11.6 x86_64)