-
Notifications
You must be signed in to change notification settings - Fork 82
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
Migrate to Browser library #1176
Comments
I've fixed few of the tests in smoke, job/rhoai/job/2.6/job/selfmanaged/job/stage/job/aws/job/rhods-smoke/44/ So far, I'm not excited about Browser. The effort to migrate will not be small. |
Here's a bit more details about https://pypi.org/project/robotframework-browser-migration. They implement Selenium keywords in terms of Playwright keywords, so ideally, the migration is just
There is one change, browser arguments for playwright must be given as array of strings, and not as a single string. Other than that, --dryrun works. They have a tool to give you stats on what keywords from selenium you use. poetry add robotframework-browser-migration
poetry run robot --dryrun -r test_report.html --variablefile ods_ci/test-variables.yml ods_ci/tests/Tests
python -m SeleniumStats output.xml
As I already said above, while the tests run, they end up failing, for various reasons, such as incompatibilities the library does not paper over, and various different behaviors, such as the login thing. |
This was discussed on Automation meeting and on internal slack. Originally proposed by @tarukumar.
https://robotframework-browser.org/
Browser is incompatible with kfp
There is no easy solution, https://stackoverflow.com/questions/77939981/how-to-handle-diamond-dependency-in-python/77940013
Missing waits
When logging into OpenShift, we do
The problem is that Browser is too fast and it runs the
Is OpenShift Login Visible
before the page is reloaded afterClick Button
Strict mode
Browser library will fail the test if locators match more than a single element. https://playwright.dev/docs/locators#strictness
robotframework-browser-migration is not a drop-in replacement
I had hight hopes for https://pypi.org/project/robotframework-browser-migration. Sadly, it does not magically work when I put it in. Instead, the issues above appear, plus additional test failures not yet understood.
The text was updated successfully, but these errors were encountered: