Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seleniumbasis on a Windows 11 machine #286

Open
SMToolset opened this issue Aug 9, 2024 · 10 comments
Open

Seleniumbasis on a Windows 11 machine #286

SMToolset opened this issue Aug 9, 2024 · 10 comments

Comments

@SMToolset
Copy link

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
Copy link

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
Copy link
Author

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 #282

@DecimalTurn
Copy link

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
Copy link
Author

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
Copy link

DecimalTurn commented Aug 12, 2024

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

  • Can you try a different browser to see if you have the same problem?
  • What are the versions of .NET that you have on the Win11 machine?

@SMToolset
Copy link
Author

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
Copy link

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

image

@SMToolset
Copy link
Author

on W10
image
and on the W1a similar view
image

@DecimalTurn
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants