vendredi 27 mars 2015

how do get protractor do click inside a search box?

I want to be able to click inside a search box which is on the page and then click submit and have a couple of expect statements. so far I have this:



it('should redirect to the correct page', function(){
browser.driver.findElement(by.id('header-search')).click();
browser.driver.findElement(by.id('header-search')).sendKeys("aaa");
//element.all(by.id('header-search')).sendKeys("tfgm");
expect(browser.getCurrentUrl()).toEqual("http://localhost:8080/web/customer/account");
});


when I run protractor all it does is click on this box but does not paste in the text? anyone got any ideas what is going wrong?


Aucun commentaire:

Enregistrer un commentaire