I have a Selenium IDE command evaluating a regex against a string in the DOM, something like this -
Command waitForEval Target /http:\/\/www.site.com\/path\/image-/.test(window[window.varA+'-'+window.varB]); Value true
After editing, all slashes appear double escaped, like
The command evaluates successfully in the Firefox IDE and Chrome WebDriver, but the regex appears to have invalid syntax when run in IE8 through WebDriver (via the IDE and IEDriverServer).
Is there a better way to construct a command like this, that might avoid the regex escaping and syntax issues?
Could this be a bug between the IDE, WebDriver and IEDriverServer?