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
Post a Comment