i'm trying using protractor wait input 'username' appears , insert value on it. how can it?
browser.get('http://localhost:5555/#'); var login = browser.driver.findelement(by.id('username'));
use expected conditions wait conditions, i.e. element present or visible. use sendkeys fill input.
var login = element(by.id('username')); var ec = protractor.expectedconditions; browser.wait(ec.presenceof(login)).then(function() { login.sendkeys('myuser'); });
this belongs in spec, not config.
Comments
Post a Comment