Not able to launch test in Browser Edge using Java Binding

69 views
Skip to first unread message

Amit Agarwal

unread,
Oct 9, 2016, 8:10:25 AM10/9/16
to webd...@googlegroups.com
Hi Folks,

I am trying to run my tests with WebDriver / Edge, 


public static void main(String[] args) {
File f1 = new File("./Browsers/MicrosoftWebDriver.exe");  
    String Path = f1.getPath();
    System.out.print("Path Is " + Path);
    System.setProperty("webdriver.edge.driver", Path);
    WebDriver driver = new EdgeDriver();
    driver.get("http://www.mytestsite.com");
}

My Borwser succeffully launched, but never reached to      driver.get("http://www.mytestsite.com");

Also not throwing any known error, just saying

Unknown error (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 3.52 seconds

Details:
OS : Windows10
Binding : Java
selenium-edge-driver: LATEST { Also tried with 2.53.1 and previous}

Can anyone please help me, to understand the issue here.
--

darrell grainger

unread,
Oct 10, 2016, 10:03:19 AM10/10/16
to webdriver
Usually when I see a "server did not provide any stacktrace information" it comes from a mismatch of binaries. I make sure the project I'm creating is using all the binaries which ship with the Selenium jar files. I make sure the version of Selenium is compatible with the version of the browser installed (this is usually not an issue with Microsoft browsers but maybe it is starting to be one with Edge browser). I also want to make sure the web driver executable (MicrosoftWebDriver.exe) matches with the version of Selenium (the date for the Selenium jar file creation and the date for the MicrosoftWebDriver.exe should be the same or within days of each other).

I can see that you are printing out the path to the executable. I would copy that path to the clipboard then paste it to an MS-DOS Prompt and try executing the MicrosoftWebDriver.exe manually. This will let you confirm (a) it is executing and (b) you have the correct version (this should get printed when the driver starts).

Finally, is webdriver.edge.driver supposed to be set to the path or the path plus filename. Maybe you need:

String Path = f1.getPath() + "/MicrosoftWebDriver.exe";

I'm not on a Windows machine right now. So I cannot check this out. 

Darrell

Amit Agarwal

unread,
Oct 10, 2016, 1:00:06 PM10/10/16
to webd...@googlegroups.com
Thanks Darrell,

1. I tried with all possible options, Edge Browser launched successfully.
2. But soon crashed, resulting failing in next step.

Location From Where I got the BinaryRelease 14393

Dependency :


<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-edge-driver</artifactId>
<version>3.0.0-beta4</version>
</dependency>

Regards,
Amit Agarwal




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

darrell grainger

unread,
Oct 11, 2016, 9:34:44 AM10/11/16
to webdriver
It took me a while to figure out how to make sure I had all the binaries which played nice with one another on Selenium 2.0. I have been busy working on enterprise client projects. They don't like to go beta. So I'm still focused on 2.0 right now. Is there a pipeline where they are building and testing 3.0 against real browsers? Maybe have a look at their test results and see which combinations they have tested with. Whatever they have tested with should work for you.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.

To post to this group, send email to webd...@googlegroups.com.
Visit this group at https://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.

Amit Agarwal

unread,
Oct 11, 2016, 10:16:53 AM10/11/16
to webd...@googlegroups.com
Thank you very much Darrell 

Your words gave me enough confidence and I tried with various combinations of 2.x/3.x with various Edge binaries. Eventually, I was able to figured it out and sharing my findings

All recent four 3.0.0 beta(x), and 2.53.x are working fine with Edge Release 10586 Version: 2.10586 | Edge version supported: 13.10586

And the same is not working with Edge Release 14393 : Version: 3.14393 | Edge version supported: 14.14393 
and Insiders : Version and Edge Version Supported: Current Insiders Fast Ring Build 


Thank you again,

Regards,
Amit Agarwal


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

To post to this group, send email to webd...@googlegroups.com.
Visit this group at https://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages