htmlunit driver - Error:org.openqa.selenium.ElementNotVisibleException: You may only interact with visible elements using htmlunitdriver? -


i getting error:

org.openqa.selenium.elementnotvisibleexception: may interact visible elements

when use htmlunitdriver. works url, after when start

driver.findelement(by.cssselector("#from_city_typeahead")).sendkeys("bangalore");  

such statements, gives above error. me solve issue.

you can same action javascript:

webdriver.executescript("document.getelementbyid('elementid').setattribute('value', 'new value element')"); 

visibility matter in case of standard visible browsers. it's doesnt matter javascript in case of of browsers.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -