You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment: webdriver-standalone2.47.1 and Firefox42.0 on windows7.
To get a bunch of properties value, we execute javascript to put the properties [name, value] into a map. For other properties, the execution runs finely, but for property 'tagName', it will stuck. Below is a simple test to reproduce this problem.
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
//DesiredCapabilities capabilities = DesiredCapabilities.chrome();//No problem with CHROME
//DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();//No problem with IE
capabilities.setJavascriptEnabled(true);
//We should start the standalone driver on port 4444 manually.
WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), capabilities);
driver.get("http://www.google.com");
WebElement searchbox = driver.findElement(By.id("lst-ib"));
String script = "function getHtmlProperties(domNode){\n"+
" var propMap={}; \n"+
" if( domNode!=undefined ){\n"+
//" propMap['tagname']=domNode.tagName;"+ //with 'tagname' as map key, execution will pass
" propMap['tagName']=domNode.tagName;"+ //with 'tagName' as map key, execution will stuck
" }\n"+
" return propMap;\n"+
"}\n"+
"\n return getHtmlProperties(arguments[0]); \n";
Object result = ((JavascriptExecutor) driver).executeScript(script, searchbox);
System.out.println(result);
driver.close();
The text was updated successfully, but these errors were encountered:
Environment: webdriver-standalone2.47.1 and Firefox42.0 on windows7.
To get a bunch of properties value, we execute javascript to put the properties [name, value] into a map. For other properties, the execution runs finely, but for property 'tagName', it will stuck. Below is a simple test to reproduce this problem.
The text was updated successfully, but these errors were encountered: