-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Protractor 5.1.1 selenium-webdriver @types version inconsitency #4148
Comments
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. |
This should be updated. @NickTomlin do a search for |
@cnishina it looks like I was able to resolve some todos in #4158 but there's still a mismatch for |
any update on this, as i still see a problem with adding the cookie and get cookie |
November 27th, problem persists with |
This is still a problem in 2018 - there was some work done by @NickTomlin here but there has been no response to the PR. |
Bug report
6.9.4
5.1.1
2.4.8
n/a
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.*
related stack overflow question
The text was updated successfully, but these errors were encountered: