florentbr/SeleniumBasic

.start "edge" url get a blank page and stop

catalaosoares opened this issue ยท 6 comments

Hi, I need help from the community. This is why even though we have the same version of the Edge browser and the Edge driver 120.0.2210.121, when opening the web page, it is blank and does not go beyond that point. I have to cancel the execution of the code in vba - excel. What is the problem? Does anyone know where you can view the log files? thanks.

Hello. It would make it easier to get help from community if you could post code that reproduces your issue, otherwise we must guess, which is very time-consuming and inefficient.

hello.

EXCEL - VBA.

Browser Edge version : 120.0.2210.133
Driver Edge version : 120.0.2210.133

It's runs and stop on .start.

until las version of browser, it works.

Sub test()
Dim driver as New Webdriver
driver.start "edge"
driver.get "https://www.google.com"

end sub

MAKdw

That combination of Browser/Webdriver version is working for me. Did you make sure to rename the Webdriver to "edgedriver.exe"? Also, to make sure it has nothing to do with Windows/.Net dependencies, can you try with Chrome or Firefox instead, just as a test?

Weirdly, if I try to run :

Dim Driver as New Webdriver
Driver.Start "edge"
Driver.Get "google.com"

I get an error with regards to the argument:
image

But if I change to a fully specified URL, it works:

Driver.Get "https://google.com"

Also, to make sure it has nothing to do with Windows/.Net dependencies [...]

Interesting possibility. That would explain why newer version of Windows might have a problem if SelenumBasic needs a version of .NET that is not installed by default or something like that. @GCuser99, can you confirm that SeleniumVBA solves this issue by simply not requiring those dependencies?

@DecimalTurn,

The SeleniumVBA twinBASIC DLL does not require any dependencies like SeleniumBasic does. It's a different (but still familiar) object model though, so code would have to be rewritten.

But I have yet to have problems running SeleniumBasic on my Windows 10 and 11 machines. I just tried it from a new Win 11 machine and the sub presenting by OP works fine after updating and renaming the edge driver.