selenium icon indicating copy to clipboard operation
selenium copied to clipboard

How to execute javascript on MicrosoftEdge

Open TARIFABBAS opened this issue 11 years ago • 2 comments

Having issues in executing javaScript in MicrosoftEdge. Kindly suggest any solution to execute it. Error: org.openqa.selenium.WebDriverException: unknown error (WARNING: The server did not provide any stacktrace information)

  • ArrayList allAttributes = (ArrayList) (JavascriptExecutor) driver.executeScript( "var s = []; var attrs = arguments[0].attributes; for (var l = 0; l < attrs.length; ++l) { var a = attrs[l]; s.push(a.name + '#:#' + a.value); } ; return s;",element);

TARIFABBAS avatar Aug 21 '15 09:08 TARIFABBAS

all Microsoft Edge issues should be brought up with Microsoft as they make their own driver.

https://connect.microsoft.com/

Thanks :+1:

ddavison avatar Aug 21 '15 13:08 ddavison

The code for the Microsoft Edge driver is built, distributed, and maintained entirely by Microsoft. You should raise issues and feature requests with them at http://connect.microsoft.com

jimevans avatar Aug 21 '15 13:08 jimevans