protractor: sendKeys() doesn't insert text because focus is on the address bar (firefox only)
Hi there, i’m testing a form login contained in a modal.
I’m using the Page Object so i get the element by this:
this.getRegistrationUserName = function () {
return element(by.css('#registrationModalView.modal form[name="regForm"] #input_last_name'));
};
Sometimes sendKeys(string)
function execute but the input text-box isn’t filled up by the string!
I can say that execute since this.getRegistrationUserName().sendKeys(name).then(function() {console.log("done!");} )
actually prints done!)
The weird is that i notice this issue just for the first input text-box of the form.
After looking #562 seems that executing .clear()
on the text-box make sendKeys()
working well.
Configuration:
- protractor 1.4.x
- chromedriver: 2.9
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 20 (11 by maintainers)
I’m experiencing this exact same behavior on Firefox 52.