selenium - protractor NoSuchElementError: no such element -


when try send keys in non-angular page protractor shows error "nosuchelementerror: no such element"

nosuchelementerror: no such element (session info: chrome=47.0.2526.80) (driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=windows nt 6.1 sp1 x86_64) (warning: server did not provide stacktrace information) command duration or timeout: 24 milliseconds documentation on error, please visit: http://seleniumhq.org/exceptions/no_such_element.html build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50' system info: host: 'sekhar-pc', ip: '192.168.1.3', os.name: 'windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_13' * element info: {using=id, value=ius-userids} session id: 352e36f285f80dee03eb5c88697ebc08 driver info: org.openqa.selenium.chrome.chromedriver capabilities [{platform=xp, acceptsslcerts=true, javascriptenabled=true, browsername=chrome, chrome={userdatadir=c:\users\sekhar\appdata\local\temp\scoped_dir3128_18281}, rotatable=false, locationcontextenabled=true, mobileemulationenabled=false, version=47.0.2526.80, takesheapsnapshot=true, cssselectorsenabled=true, databaseenabled=false, handlesalerts=true, browserconnectionenabled=false, webstorageenabled=true, nativeevents=true, applicationcacheenabled=false, takesscreenshot=true}] **

when testing non-angular pages protractor, need include line in of specs:

browser.ignoresynchronization = true; 

you need wait page load. using expectedconditions 1 way that. example:

var ec = protractor.expectedconditions; browser.wait(ec.elementtobeclickable(element(by.css('.wait-for-me'))), 10000); 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -