-
Notifications
You must be signed in to change notification settings - Fork 765
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
After upgrade from 4.5.0, cannot use SeleniumLibrary. Fails with error: TypeError: HybridCore.__init__() takes 2 positional arguments but 3 were given #1920
Comments
Hélio, does the error occur with the latest version of Selenium v4.25.0? To me this is important as there is some version compatibility issues here. SeleniumLibrary only with the 6.6.1 release "officially" supported Python v3.12.x. And even there in that release we noted the Robot Framework v7.1 had not been released but we did test against 7.1rc2. But v6.6.1 suports only back to Selenium v4.21.0. (And only that far back because we weren;'t constantly testing/releasing each month during the summer as the most recent selenium version came out. Our goal is to support that last two seleniums). So going back to either Selenium 4.16.0 or SeleniumLibrary 6.1.1 would be incompatable with Robot Framework 7.1 and Python 3.12. |
@emanlove User says Selenium is 4.25.0. I'll edit version. (I did upgrade on may machine too, but no problems. Maybe still some cache.): No problems on my machine, after completely reinstall of SeleniumLibrary.
|
User reports that:
|
Updating |
@avnik User reports that upgrading
|
@HelioGuilherme66 https://github.com/avnik/ghaf-ci-test-automation/blob/avnik/selenium/pkgs/robotframework-seleniumlibrary/default.nix package with |
Steps to reproduce the issue
Initial problem was found in Python 3.9, with upgrade from 4.5.0 to 6.1.1, and still happens in 6.6.1, also in Python 3.12.6.
After downgrade to 4.5.0 in Python 3.12.6, test suite runs as expected.
On both IDEs, Visual Studio Code with Robotcode, and RIDE v2.1b1, the library is marked as failed to import documentation.
Simple test case:
Error messages and additional information
Output of test run (test suite with resources):
(I open this on behalf of user)
Initial conversation happened in Slack #seleniumlibrary channel.
Expected behavior and actual behavior
Expected no errors and documentation loaded in IDEs and test run to proceed.
Environment
Browser: Chrome
Browser driver: chromedriver
Operating System: Windows 11 x64
Libraries
4.16.04.25.0The text was updated successfully, but these errors were encountered: