Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

sendKeys() doesn't insert text because focus is on the address bar (firefox only) #1511

Closed
@enricorotundo

Description

@enricorotundo

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions