question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
titusfortnercommented, Jul 8, 2021

Wanting you not to do what exactly? Use the 32 bit driver?

0reactions
luke-hillcommented, Jul 8, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found