-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[rust] Build selenium-manager for win32 (compatible when executed in win64) #11788
Conversation
The Windows 32 binary appears to work on my 64bit Windows machine. Is there functionality that does not work? I feel like this was discussed but I don't remember what was said. |
The selenium-manager x32 binary executed in an x64 machine has different issues. See an example:
As you can see, the commands to discover the browser version (Firefox, in this case) are not working. In the case of Chrome it works because of the registry command. But the WMIC command is more reliable (since we ask directly to the browser binary instead of the info in the registry). In addition, WMIC command is required when the browser path is passed from options. The second problem has to do with architecture discover. As you can see in the example before, the binary Of course, it would be ideal to have a selenium-manager x32 binary that also works for x64. I have been working on that since Saturday. I don't have a complete solution, but I think I am close. I'll let you know my results. |
If we need another binary, we need it, I just wanted to make sure. Thanks for explaining it. |
f5a3683
to
6ddbdfb
Compare
I managed to make the resulting selenium-manager binary compatible with Windows 32 and 64. See for example: selenium-manager_windows-x32 Some output examples in Windows 64: Chrome
Firefox
Edge
... and in Windows 32: Chrome
Firefox
Edge
I updated the PR title and description accordingly. |
This is great! So, going off of this list: #11357
That's ~95% of use cases based on geckodriver numbers The only weird bit here... the new windows 32 bit, on 64 bit machines it uses the 64 bit msedgedriver & geckodriver, but the 32 bit chromedriver? Or is it using 32 bit versions for everything? Finally that means for #11599 all we need to do right now is to check for arm64 windows/linux and linux32 to throw an explicit error that the architecture isn't supported... |
Yes, that is because chromedriver for Windows is only released as a |
I actually meant to post this comment here. |
Ah, then I meant to post this comment here as well. |
6ddbdfb
to
cede76f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @bonigarcia!
…win64) (SeleniumHQ#11788) * [CI] Build selenium-manager for win32 in GH Actions * [CI] Remove build for selenium-manager win64 in GH Actions * [rust] Enable browser version and architecture detection both in Windows x32 and x64
Description
This PR updated the workflow to build Selenium Manager in GH Actions, for building
selenium-manager
for Windows x32. An example execution can be see here. I tested the resulting binary (e.g. selenium-manager_windows-x32) both in Windows x32 and x64. In both cases, it works as expected.Motivation and Context
This PR is part of #11599. Since the resulting binary is compatible with win32 and win64, it can be used to replace the selenium-manager binary for windows (in the folder
common/manager/windows
).Types of changes
Checklist