florentbr / SeleniumBasic

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

Seleniumbasis on a Windows 11 machine #286

Open SMToolset opened 1 month ago

SMToolset commented 1 month ago

I have used on a windows 10 the seleniumbasic with VBA without problems. I now want to move to Windows 11 and getting diferent Troubles with the seleniumBasic on an VM instance the Edge browser is opened but the wanted URL isn't passed thru to the browser under control.? On a physical PC with W11 home edition even the browser isn't launched. Are there known isueswhich i need to tackel to get it running as on W10?

DecimalTurn commented 1 month ago

Personally, I'm using Windows 11 on a physical machine and I haven't got any problems with Edge. Are you sure it's not a problem with the Edge driver?

SMToolset commented 1 month ago

Which seleniumBasis you use in this case ? the right installed Edge driver was used. The browser is opened un the control of the driver but no URL is passed to the browser. It looks like issue https://github.com/florentbr/SeleniumBasic/issues/282

DecimalTurn commented 1 month ago

Which seleniumBasis you use in this case ?

I use the latest version from 2016 (v2.0.9.0)

It looks like issue 282

Could be indeed. Have you tried to specify the URL in the Start method instead of the Get method?

ie.:

Driver.Start "edge", "https://google.com"
Driver.Get "/"
SMToolset commented 1 month ago

Thanks for your suggestion, but this isn't change the behavior The function works perfectly under W10 url = any correct URL Set driver = New Selenium.EdgeDriver '"Edge" as default 'start selenium and the new browser session driver .Start '"Edge" as default 'start selenium and the new browser session driver .Window.SetSize 1000, 800 'window size driver.Get url

DecimalTurn commented 1 month ago

Hum, without more information, I'm affraid I can't help you, because it's working for me on Win11.

SMToolset commented 1 month ago

I have implemented the users choice which browser they want to use edge or chrome but both with the same effect i also have tried Firefox but the same behavior. The good working W10-PC has .Net V4.8.09032 and the same version is there on the W11 PC.

DecimalTurn commented 1 month ago

SeleniumBasic uses .NET 3.5. Do you have .NET 3.5 enabled?

image

SMToolset commented 1 month ago

on W10 image and on the W1a similar view image

DecimalTurn commented 1 month ago

This configuration is the same as what I have for Win11. My last guess would be that it could be because VBScript is disabled on the Win11 machine, but I'm not sure if that matters when using the library in VBA.

SMToolset commented 1 month ago

Thanks for sharing your Idea's. I'm in the mean time out of ideas. On the W11 machine i can run VBS so that's also not causing the issue