Edge WebDriver not able to execute java script on Edge Beowser

Not reproducible Issue #11469381

Details

Author
Sachin N.
Created
Mar 31, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

For Edge 38.14393.0.0 version, MoveToElement function moving to wrong coordinates

I am using below details:
1: Selenium Standalone Server 3.3.1 -> RemoteWebDriver

2: C# Client Lib 3.3.0

3: Microsoft Edge Driver from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ -> Release 14393

4: Remote WebDriver Capability Details are as follows:
_capabilities = DesiredCapabilities.Edge();
_capabilities.SetCapability(CapabilityType.BrowserName, “MicrosoftEdge”);
_capabilities.SetCapability(CapabilityType.Platform, “WIN10”);
_capabilities.SetCapability(CapabilityType.AcceptSslCertificates, true);
_capabilities.SetCapability(CapabilityType.HasNativeEvents, true);
_capabilities.SetCapability(CapabilityType.IsJavaScriptEnabled, true);
EdgeOptions edgeOptions = new EdgeOptions();
edgeOptions.AddAdditionalCapability("ignoreZoomSetting", true);
edgeOptions.PageLoadStrategy = EdgePageLoadStrategy.Normal;
_capabilities = (DesiredCapabilities)edgeOptions.ToCapabilities();

6: Please find attached screenshot for my Browser Version Details.

7: Code To Execute:

public void MouseHoverByJavaScript(IWebElement targetElement)
{
string javaScript = “var evObj = document.createEvent(‘MouseEvents’);” +
"evObj.initMouseEvent(“mouseover",true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);” +
"arguments[0].dispatchEvent(evObj);";
IJavaScriptExecutor js = custumDriver as IJavaScriptExecutor;
js.ExecuteScript(javaScript, targetElement);
}

Attachments

Comments and activity

  • Changed Steps to Reproduce

  • Microsoft Edge Team

    Changed Assigned To to “Steven K.”

  • Hi Sachin,

    I want to clarify the issue you are reporting.  Are you reporting that the script does not execute or as you mentioned in the first sentence of the repro only that you are getting the wrong coordinates.  I believe it is only the coordinates but wanted to verify because of the title of this bug report.

    Also, are you still seeing this issue with the 3.4.0 selenium standalone server?  If you have not attempted to repro in the 3.40 version please do and let us know.

    Appreciate the help and the support,

    The MS Edge Team

  • Hi Steven,

    Yes, You are right when I used 3.4.0 version with server, The issue gets resolved :)

    Thanks & Regards,
    Sachin

  • Microsoft Edge Team

    Changed Status to “Confirmed”

    Changed Title from “Edge WebDriver not able to execute java script on Edge Beowser” to “Edge WebDriver not able to execute java script on Edge Beowser”

    Changed Status from “Confirmed” to “Not reproducible”

  • Hi Sachin,

    That is good news and thank you for the quick reply.

    Let us know if you see anything else and appreciate the support,

    The MS Edge Team

You need to sign in to your Microsoft account to add a comment.

Sign in