Skip to content

Commit 5b378ca

Browse files
committed
Unguard fixed window specs for IE
It now supports setting size and position and maximizing windows
1 parent 0433610 commit 5b378ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rb/spec/integration/selenium/webdriver/window_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ module WebDriver
3333
expect(size.height).to be > 0
3434
end
3535

36-
it 'sets the size of the current window', except: {browser: :ie} do
36+
it 'sets the size of the current window' do
3737
size = window.size
3838

3939
target_width = size.width - 20
4040
target_height = size.height - 20
4141

42-
window.size = Dimension.new(target_width, target_height)
42+
window.size = Dimension.new(target_height)
4343

4444
new_size = window.size
4545
expect(new_size.width).to eq(target_width)
@@ -55,7 +55,7 @@ module WebDriver
5555
expect(pos.y).to be >= 0
5656
end
5757

58-
it 'sets the position of the current window', except: {browser: %i[ie safari_preview]} do
58+
it 'sets the position of the current window', except: {browser: :safari_preview} do
5959
pos = window.position
6060

6161
target_x = pos.x + 10
@@ -100,7 +100,7 @@ module WebDriver
100100
expect(new_rect.height).to eq(target_height)
101101
end
102102

103-
it 'can maximize the current window', except: [{window_manager: false}, {browser: :ie}] do
103+
it 'can maximize the current window', except: {window_manager: false} do
104104
window.size = old_size = Dimension.new(200, 200)
105105

106106
window.maximize

0 commit comments

Comments
 (0)