paulotarcio paulotarcio - 1 month ago 7
Javascript Question

How Can I wait to an element to appears using protractor and my file conf?

I'm trying to using protractor to wait to my input 'Username' to appears and then insert value on it. How Can I do it?

var login = browser.driver.findElement('Username'));


Use Expected Conditions to wait for certain conditions, i.e. for an element to be present or visible. Use sendKeys to fill an input.

var login = element('Username'));
var EC = protractor.ExpectedConditions;
browser.wait(EC.presenceOf(login)).then(function() {

This belongs in your spec, not your config.