Unknown Error: Cannot use 'in' operator to serach for 'string'

219 views
Skip to first unread message

palmer.chr...@gmail.com

unread,
Aug 23, 2017, 8:00:24 AM8/23/17
to ChromeDriver Users
Hello -

I am developing codedUI automation tests and have run into an issue where the Selenium FindElement method fails and cannot find any objects on my application in Chrome only. IE and Firefox work OK.

The error I'm getting is Cannot use 'in' operator to search for 'String' in Https://geocode.arcgis.com/arcgis/rest/services/WorldGeocodeServer. I'm currently using chromedriver 2.29/461591.

If I paste the Html from the page into fiddle, it works OK in Chrome.

When I run chromedriver --verbose, I get the following log entries:

[97.178][DEBUG]: DEVTOOLS RESPONSE Runtime.evaluate (id=381) {
"result": {
"type": "object",
"value": {
"status": 13,
"value": "Cannot use 'in' operator to search for 'String' in https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"

I'm looking for assistance and suggestions on how to further diagnose the cause of this issue. Is it Selenium? ChromeDriver? Some JavaScript JSQuery syntax error?

Thank you,

palmer.chr...@gmail.com

unread,
Aug 23, 2017, 8:33:59 AM8/23/17
to ChromeDriver Users, palmer.chr...@gmail.com
if it's relevant, when I debug the test in Visual studio, I'm finding the following errors when I drill down through the locals.

ApplicationCache
'((OpenQA.Selenium.Remote.RemoteWebDriver)drv).ApplicationCache' threw an exception of type 'System.InvalidOperationException'

ApplicationCache.Message
"Driver does not support manipulating the HTML5 application cache. Use the HasApplicationCache property to test for the driver capability"

DeclaringMethod.Message:
"Method may only be called on a Type for which Type.IsGenericParameter is true."


John Chen

unread,
Aug 23, 2017, 10:03:25 AM8/23/17
to palmer.chr...@gmail.com, ChromeDriver Users
This is probably ChromeDriver bug 1885. A fix for it will be in version 2.32, expected to be released soon.



--
You received this message because you are subscribed to the Google Groups "ChromeDriver Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromedriver-users+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris

unread,
Aug 23, 2017, 10:47:35 AM8/23/17
to ChromeDriver Users, palmer.chr...@gmail.com, zhan...@google.com
Thanks John.  I tried implementing the work around, and it does alleviate the issue.  The only caveat is I have to add that line every time my test changes screens. Any idea how soon 2.32 will be released?  

John Chen

unread,
Aug 23, 2017, 11:24:06 AM8/23/17
to Chris, ChromeDriver Users
There are a couple of issues blocking the release right now, and we're trying to fix them as quickly as we can. Hopefully the release will come out in a week or so.

To unsubscribe from this group and stop receiving emails from it, send an email to chromedriver-users+unsubscribe@googlegroups.com.

Chris

unread,
Aug 28, 2017, 9:13:16 AM8/28/17
to ChromeDriver Users, palmer.chr...@gmail.com, zhan...@google.com
Hi John -

We were sharing information on this issue with out developers, and they had a question I wanted to pass along.  If they changed the "global" variable name to something else, would that also fix the issue?
To unsubscribe from this group and stop receiving emails from it, send an email to chromedriver-users+unsub...@googlegroups.com.

John Chen

unread,
Aug 28, 2017, 10:01:50 AM8/28/17
to Chris, ChromeDriver Users, John Chen
Yes, if your page doesn't use "global" as a variable name, it should fix the issue.

To unsubscribe from this group and stop receiving emails from it, send an email to chromedriver-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages