florentbr / SeleniumBasic

A Selenium based browser automation framework for VB.Net, VBA and VBScript
BSD 3-Clause "New" or "Revised" License
421 stars 196 forks source link

Unable to open Microsoft edge browser even after adding edge driver #248

Open vshivaku opened 2 years ago

vshivaku commented 2 years ago

I have added edge diver to SeleniumBasic path

I am calling finely in my VBA as below

Set driver = New Selenium.EdgeDriver
driver.Start "edge"

when we call driver.Start it suppose to open the bowser but it is not opening. I followed steps clearly in https://florentbr.github.io/SeleniumBasic/. can you please check what could be issue. Note : The same configuration working fine for chrome browser. with lot of research and work around only raising this issue.

Thanks in advance

GCuser99 commented 2 years ago

I don't have any trouble starting Edge that way. My current browser and driver version is 100.0.1185.44.

vshivaku commented 2 years ago

Is there any version compatibility issue. below are versions config i have Edge driver : 102.0.1227.0 Microsoft Edge Version 100.0.1185.44 any thing wrong with the versions?

GCuser99 commented 2 years ago

I don't know if those are compatible, but the general rule is that the major version (the number to the left of the first period) should match for compatibility. So try with an Edge driver version 100.X.XXX.XX.

vshivaku commented 2 years ago

Yes that`s correct. tried this 100.X.XXX.XX, its working. Thanks. Is it possible same with firefox?

GCuser99 commented 2 years ago

That general rule applies to Chrome and Edge - I don't know about Firefox.

vshivaku commented 2 years ago

Actually i am making to open default browser of system. in that process achieved for chrome and edge. For Firefox I didn`t find the driver. So is there any source or solution for this?

GCuser99 commented 2 years ago

this may be of some help: https://firefox-source-docs.mozilla.org/testing/geckodriver/Support.html

vshivaku commented 2 years ago

Thanks @GCuser99 I will work on this.

mogulman52 commented 2 years ago

There is no solution for FF. FF changed how they access DOM.