+13
-21
lines changedFilter options
+13
-21
lines changed Original file line number Diff line number Diff line change
@@ -202,7 +202,7 @@ module WebDriver
202
202
expect(element.attribute(:value)).to eq('Clicked')
203
203
end
204
204
205
-
it 'moves to element with offset', exclude: {browser: :firefox, platform: :linux} do
205
+
it 'moves to element with offset' do
206
206
driver.navigate.to url_for('javascriptPage.html')
207
207
origin = driver.find_element(id: 'keyUpArea')
208
208
destination = driver.find_element(id: 'clickField')
Original file line number Diff line number Diff line change
@@ -81,10 +81,7 @@ module WebDriver
81
81
expect(driver.manage.cookie_named('domain')[:domain]).to eq('.saucelabs.com')
82
82
end
83
83
84
-
it 'should not allow domain to be set for localhost',
85
-
exclude: [{browser: %i[chrome edge],
86
-
reason: "https://bugs.chromium.org/p/chromedriver/issues/detail?id=3733"}],
87
-
except: {browser: %i[safari safari_preview]} do
84
+
it 'should not allow domain to be set for localhost', except: {browser: %i[safari safari_preview]} do
88
85
expect {
89
86
driver.manage.add_cookie name: 'domain',
90
87
value: 'localhost',
Original file line number Diff line number Diff line change
@@ -17,7 +17,6 @@
17
17
# specific language governing permissions and limitations
18
18
# under the License.
19
19
20
-
21
20
require_relative 'spec_helper'
22
21
23
22
module Selenium
Original file line number Diff line number Diff line change
@@ -109,7 +109,7 @@ def save_screenshot_and_assert(source, path)
109
109
end
110
110
end
111
111
112
-
it 'does not take full page screenshot', exclude: {browser: :firefox} do
112
+
it 'does not take full page screenshot', except: {browser: :firefox} do
113
113
expect {
114
114
driver.save_screenshot path, full_page: true
115
115
}.to raise_exception(Error::UnsupportedOperationError, /Full Page Screenshots are not supported/)
Original file line number Diff line number Diff line change
@@ -60,7 +60,10 @@ module WebDriver
60
60
expect(pos.y).to be >= 0
61
61
end
62
62
63
-
it 'sets the position of the current window' do
63
+
it 'sets the position of the current window',
64
+
except: {browser: :firefox,
65
+
window_manager: false,
66
+
reason: 'https://github.com/mozilla/geckodriver/issues/2042'} do
64
67
pos = window.position
65
68
66
69
target_x = pos.x + 10
@@ -86,7 +89,10 @@ module WebDriver
86
89
expect(rect.height).to be >= 0
87
90
end
88
91
89
-
it 'sets the rect of the current window' do
92
+
it 'sets the rect of the current window',
93
+
except: {browser: :firefox,
94
+
window_manager: false,
95
+
reason: 'https://github.com/mozilla/geckodriver/issues/2042'} do
90
96
rect = window.rect
91
97
92
98
target_x = rect.x + 10
@@ -116,12 +122,7 @@ module WebDriver
116
122
expect(new_size.height).to be > old_size.height
117
123
end
118
124
119
-
# Edge: Not Yet - https://dev.windows.com/en-us/microsoft-edge/platform/status/webdriver/details/
120
-
# https://github.com/mozilla/geckodriver/issues/1281
121
-
it 'can make window full screen', only: {window_manager: true},
122
-
exclude: [{driver: :remote, browser: :firefox, platform: :linux},
123
-
{driver: :remote, browser: :safari},
124
-
{browser: %i[chrome edge]}] do
125
+
it 'can make window full screen', except: {window_manager: false, browser: :firefox} do
125
126
window.size = old_size = Dimension.new(700, 700)
126
127
127
128
window.full_screen
@@ -132,11 +133,7 @@ module WebDriver
132
133
expect(new_size.height).to be > old_size.height
133
134
end
134
135
135
-
# Edge: Not Yet - https://dev.windows.com/en-us/microsoft-edge/platform/status/webdriver/details/
136
-
# https://github.com/mozilla/geckodriver/issues/1281
137
-
it 'can minimize the window', only: {window_manager: true},
138
-
exclude: [{driver: :remote, browser: :firefox, platform: :linux},
139
-
{driver: :remote, browser: :safari}] do
136
+
it 'can minimize the window', only: {window_manager: true} do
140
137
window.minimize
141
138
expect(driver.execute_script('return document.hidden;')).to be true
142
139
end
Original file line number Diff line number Diff line change
@@ -17,7 +17,6 @@
17
17
# specific language governing permissions and limitations
18
18
# under the License.
19
19
20
-
21
20
require File.expand_path('../spec_helper', __dir__)
22
21
require 'selenium/webdriver/support/cdp_client_generator'
23
22
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4