Skip to content

Commit 87cd321

Browse files
committed
- Added atest
1 parent c96bc46 commit 87cd321

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

atest/acceptance/windows.robot

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
111135
Select Window By Title After Close Window
112136
[Tags] Known Issue Internet Explorer Known Issue Safari
113137
Cannot Be Executed in IE

0 commit comments

Comments
 (0)