sendKeys(protractor.Key.TAB) has no effect
A test that tabs through form fields and routinely works suddenly ceased to do so in the past couple of days. The relevant source:
beforeEach(function () {
firstLabel.click();
firstField.click();
});
it("should become invisible when tabbed out", function () {
firstField.sendKeys(protractor.Key.TAB);
expect(firstField.isDisplayed()).toBeFalsy();
});
protractor.Key.TAB is defined and in the console prints out the equivalent of '\uE004'
The test is running on the latest version of Chrome. Some of the npm devDependencies are:
[email protected] node_modules/gulp-protractor
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
And output from jar updates reads:
Updating selenium standalone
downloading https://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar...
Updating chromedriver
downloading https://chromedriver.storage.googleapis.com/2.15/chromedriver_mac32.zip...
chromedriver_2.15.zip downloaded to [path]/node_modules/gulp-protractor/node_modules/protractor/selenium/chromedriver_2.15.zip
selenium-server-standalone-2.45.0.jar downloaded to [path]/node_modules/gulp-protractor/node_modules/protractor/selenium/selenium-server-standalone-2.45.0.jar
Issue https://bugs.chromium.org/p/chromium/issues/detail?id=643617 seems to refer to the problem, and the last comment says that this is fixed in Chromedriver 2.2.24, which has been added in Webdriver Manager (but not released), so Protractor currently uses an older version of Chrome Driver. So in order to get this fixed (I think),
- Webdriver Manager must cut a release
- Protractor must update the WM dependency
- Protractor must cut a release
pinging @cnishina