Protractor 5.1.1 selenium-webdriver @types version inconsitency #4148
Description
Bug report
- Node Version:
6.9.4
- Protractor Version:
5.1.1
- Angular Version:
2.4.8
- Browser(s):
n/a
- Operating System and Version
Windows 7
I've recently upgraded to Protractor 5.1.1 and am facing some issues when setting cookies via browser.manage().addCookie()
The API has changed between versions 2 and 3 of Selenium-webdriver to expect an object rather than the previous 2..6 arguments. When I make the changes to my code to use the object, the typescript compiler complains saying that it expects 2..6 arguments.
old api:
browser.manage().addCookie('cookieName', 'cookieVal');
new api:
browser.manage().addCookie({name:'cookieName', value: 'cookieVal'});
I think this is because the @types/selenium-webdriver in the package.json of protractor v5.1.1 is pointing at version 2.53.39. The version of the actual selenium-webdriver the same package.json is referencing is 3.0.1.
I think they should both be version 3.*