-
Notifications
You must be signed in to change notification settings - Fork 764
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
Added minimize keyword #1741
Added minimize keyword #1741
Conversation
Please write test, acceptance or unit, for the new keyword. |
Hello, I would like to edit/copy the tests for the existing |
It seems that we do not have one. But easy way would be to use https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Set%20Window%20Size and set window size something small Then use new keyword and verify that size is bigger. |
Added an acceptance test, using the underlying selenium tests as inspiration. However it seems that even in the selenium library such tests are disabled, perhaps due to instability or unable to access to the browser's maximized/minimized state on all the platforms and OSes. The minimize test is only checking for |
Looks good for me. @emanlove what you want to do with the PR? |
6340cc5
to
fe9b4ba
Compare
- Added atest
fe9b4ba
to
994a138
Compare
Hi, I've rebased the branch, but I don't fully understand how to make the checks to pass. |
Checking against latest version of unit and acceptance tests but failing tests. Investigating at the moment and wondering if we are running in headless mode if this affects the Page Visibility correctness in reporting .. Did note that the Page Visibility API is supported by all major browsers so concern about browser support shouldn't be an issue. |
Mmm yes, it seems that the Windows suite runs in headless mode (browser created only once in the Suite Setup), so it will be quite hard to test the Minimize behavior there. There are no explicit documentation about Visibility API and headless mode interaction. |
Was relooking at this and thought to see/ask what the Selenium project is doing to test this. Titus Fortner noted that one of their contributors added fluxbox to their GitHub actions to get minimize working. I am going to check out their GitHub Actions CI configuration and try out Titus's suggestion. |
3a16734
to
994a138
Compare
Hi, I expect that the base Selenium library is already offering the required code quality, since offered to a broader set of libraries. |
@lmartorella Sorry, this slipped between the cracks and I lost track of this. Putting this on the next release's milestone. |
Added the access to minimize method, symmetrical to the maximize one.