Skip to content

Commit f5f7521

Browse files
committed
reset the driver if rbe not sure why
1 parent bacbc23 commit f5f7521

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

rb/spec/integration/selenium/webdriver/action_builder_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ module WebDriver
174174
expect(element.attribute(:value)).to eq('DoubleClicked')
175175
ensure
176176
# https://issues.chromium.org/issues/400087471
177-
reset_driver! if GlobalTestEnv.browser == :chrome
177+
reset_driver! if GlobalTestEnv.browser == :chrome && GlobalTestEnv.rbe?
178178
end
179179
end
180180

rb/spec/integration/selenium/webdriver/driver_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ module WebDriver
159159
}.to raise_error(Error::InvalidSelectorError, /errors#invalid-selector-exception/)
160160
ensure
161161
# https://issues.chromium.org/issues/400087471
162-
reset_driver! if GlobalTestEnv.browser == :chrome
162+
reset_driver! if GlobalTestEnv.browser == :chrome && GlobalTestEnv.rbe?
163163
end
164164
end
165165

@@ -324,6 +324,9 @@ module WebDriver
324324
it 'is able to pass null arguments' do
325325
driver.navigate.to url_for('javascriptPage.html')
326326
expect(driver.execute_script('return arguments[0];', nil)).to be_nil
327+
ensure
328+
# https://issues.chromium.org/issues/400087471
329+
reset_driver! if GlobalTestEnv.browser == :chrome && GlobalTestEnv.rbe?
327330
end
328331

329332
it 'is able to pass array arguments' do

rb/spec/integration/selenium/webdriver/target_locator_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module WebDriver
9191
}.to raise_error(ArgumentError)
9292
ensure
9393
# https://issues.chromium.org/issues/400087471
94-
reset_driver! if GlobalTestEnv.browser == :chrome
94+
reset_driver! if GlobalTestEnv.browser == :chrome && GlobalTestEnv.rbe?
9595
end
9696

9797
it 'switches to the new window then close it when given a block' do

0 commit comments

Comments
 (0)