-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Description
🐛 Bug Report
It seems like the change from "x is None" to "not x" causes an issue when passing 0x0 as coordinates to set_window_rect. It brings up the InvalidArgumentException even though the arguments are provided.
#8963
This issue was found when running "Set Window Position" from SeleniumLibrary 5.1.3
https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Set%20Window%20Position
I noticed that running "not 0" where 0 is an int returns True and "not '0'" where "0" is a string returns False, so I'm not sure if it expects a string value. Even so, passing a string value from RobotFramework still seems to return the same issue.
To Reproduce
Run "Set Window Position" via SeleniumLibrary with x=0 and y=0
Expected behavior
Coordinates 0x0 should be accepted with integer 0s.
Test script or set of commands reproducing this issue
*** Settings ***
Library SeleniumLibrary
*** Test Cases ***
test_set_window_position
[Setup] Open Browser about:blank chrome
[Teardown] Close All Browsers
Set Window Position ${0} ${0}
Environment
OS: Windows 10
Browser: Chrome
Browser version: 91.0.4472.106
Browser Driver version: 91.0.4472.101
Language Bindings version: Python 3.9.5, SeleniumLibrary 5.1.3