[rb] - `#all_cookies` Using invalid bitness on IEDriver can return an Error string. Causes NME "A string cannot be mapped"
See original GitHub issue🐛 Bug Report
This may be an issue with the Driver specifically. The error is informative, but then causes a different error down the toolchain.
To Reproduce
I ran on browserstack Windows 10 IE11 (Which is what generates the problem). However in essence it’s running IE11 tests on a x64 system when it probably only should be running on x32 (Like a nice old Windows 7 or earlier).
Simply call driver.browser.manage.all_cookies
Expected behavior
StandardError “Cannot obtain cookies due to a bitness mismatch”
Actual result
0> cookie_manager.all_cookies
=> undefined method `map' for #<String:0x0000556cb2f5f130>
@bridge.cookies
=> "Could not retrieve cookies. The most common cause of this error is a mismatch in the bitness between the driver and browser. In particular, be sure you are not attempting to use a 64-bit IEDriverServer.exe against IE 10 or 11, even on 64-bit Windows."
Test script or set of commands reproducing this issue
As Above
Environment
Browerstack Windows 10 IE11 Browser Driver version: 3.141 Language Bindings version: Ruby 4 alpha 6 Selenium Grid version (if applicable): 4 alpha 6
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
When I am running scripts with IE in robot framework, I am ...
When I am running scripts with IE driver in robot framework, I am getting the below error: WebDriverException: Message: Invalid timeout type ...
Read more >WebDriver - W3C on GitHub
An error data dictionary is a mapping of string keys to JSON serializable values that can optionally be included with error objects.
Read more >Viewing online file analysis results for 'WhatSender.exe'
This report has 22 indicators that were mapped to 17 attack techniques and 7 ... Found strings in conjunction with a procedure lookup...
Read more >How to solve "Webdriver cannot be resolved to a type" Error in ...
In this video it shows how one can resolve the "Webdriver cannot be resolved to a type" error while working with selenium in...
Read more >Failed To Launch IE Driver Using Selenium WebDriver
Error 1: Exception in thread “main” org.openqa.selenium.remote.SessionNotFoundException: Unexpected error launching Internet Explorer. Protected ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Wanting you not to do what exactly? Use the 32 bit driver?
Yep but then that raises a whole new kettle of fish sadly. They’re wanting me not to do that (Long story). I didn’t realise the pi version wasn’t the latest I’ll try a later version