Protractor 5.1.1 selenium-webdriver @types version inconsitency
See original GitHub issueBug 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.*
Issue Analytics
- State:
- Created 7 years ago
- Reactions:8
- Comments:6 (4 by maintainers)
Top GitHub Comments
any update on this, as i still see a problem with adding the cookie and get cookie
Thanks for raising this! This is something that we will need to take care of internally.
The current workaround in Craig’s SO answer:
I can pick this up later in the week unless someone has time to work on it before then.