In Dynamic Browser Code, code work is not working for Edge browser however its working fine for Mozilla and Chrome. | Selenium Forum
P
pateljp19 Posted on 29/06/2020

While executing program of dynamic browser, its working fine for Mozilla and chrome whereas error is dislpayed to update the driver path though all valid drivers are kept at same location.

 

Please refer attached word doc containing code and screenshots for more details.


A
Ashish Thakur Replied on 01/07/2020

Restart system and try

What is version of your edge. Please check in help menu and let me know


P
pateljp19 Replied on 03/07/2020

I have restarted eclipse as well as system multiple time still the error exists.

I am using Version 83.0.478.58.

 

 

Responsive image


A
Ashish Thakur Replied on 06/07/2020

Now download the exe corresponding to this version from Microsoft site


P
pateljp19 Replied on 06/07/2020

I have tried updating the driver exe in past and today as well but still same error.

 

[RemoteTestNG] detected TestNG version 6.14.3
FAILED: login
java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.edge.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/MicrosoftWebDriver. The latest version can be downloaded from http://go.microsoft.com/fwlink/?LinkId=61968

 

Responsive image


A
Ashish Thakur Replied on 09/07/2020

Just try to set the system property in code

See if it works?


P
pateljp19 Replied on 11/07/2020

Yes it works fine with system property.


A
Ashish Thakur Replied on 30/07/2020

You can use this System.set property method for a while as ms edge is migrating to a new platform.