You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
I just upgraded to protractor 4.0.14 and I'm getting a Typescript compiler error on the following code: browser.actions().sendKeys(protractor.Key.chord(protractor.Key.CONTROL, "a")).perform();
error: Error:(47, 55) TS2339:Property 'chord' does not exist on type 'IKey'.
I know that 4.0.14 addressed transpiling issues with webdriver. Not sure if this could've broken it.
Any help here would be greatly appreciated.
Node: 6.9.1
OS: Windows 10
The text was updated successfully, but these errors were encountered:
If you are using the @types/selenium-webdriver that comes with 4.0.14, it is because chord method does not exist in the typings. This has been fixed with DefinitelyTyped/DefinitelyTyped#13513. The fix should be in the latest version 2.53.38.
Option 1. Set protractor.Key to any:
browser.actions().sendKeys((protractor.Key as any).chord(protractor.Key.Control, "a")).perform();
We just set protractor.Key to any so the chord method will just work.
Option 2. May or may not work (needs investigation):
Install the latest version of @types/selenium-webdriver: 2.53.38+. I am not what happens with different installed version of @types/selenium-webdriver.
I just upgraded to protractor 4.0.14 and I'm getting a Typescript compiler error on the following code:
browser.actions().sendKeys(protractor.Key.chord(protractor.Key.CONTROL, "a")).perform();
error:
Error:(47, 55) TS2339:Property 'chord' does not exist on type 'IKey'.
I know that 4.0.14 addressed transpiling issues with webdriver. Not sure if this could've broken it.
Any help here would be greatly appreciated.
Node: 6.9.1
OS: Windows 10
The text was updated successfully, but these errors were encountered: