File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,30 @@ Set Window Position using strings
108108 Should Be Equal ${x } ${200 }
109109 Should Be Equal ${y } ${100 }
110110
111+ Test Minimize and Maximize Will Actually Move and Resize Window
112+ Set Window Position 300 200
113+ Set Window Size 400 300
114+ ${isHidden } = Execute Javascript return document.hidden;
115+ Should Not Be True ${isHidden }
116+
117+ Minimize Browser Window
118+
119+ ${isHidden } = Execute Javascript return document.hidden;
120+ Should Be True ${isHidden }
121+
122+ Maximize Browser Window
123+
124+ ${isHidden } = Execute Javascript return document.hidden;
125+ Should Not Be True ${isHidden }
126+
127+ ${x } ${y } = Get Window Position
128+ ${width } ${height } = Get Window Size
129+ # Windows: Can't test for zero in multi-monitor setups
130+ Should Not Be Equal ${x } ${300 }
131+ Should Not Be Equal ${y } ${200 }
132+ Should Be True ${width } > 400
133+ Should Be True ${height } > 300
134+
111135Select Window By Title After Close Window
112136 [Tags] Known Issue Internet Explorer Known Issue Safari
113137 Cannot Be Executed in IE
You can’t perform that action at this time.
0 commit comments