Skip to content

Commit

Permalink
Ignore difference in browser handling of links with the same blank ta…
Browse files Browse the repository at this point in the history
…rget
  • Loading branch information
p0deje committed Aug 24, 2017
1 parent 3e1bac6 commit 6afbc2e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions rb/spec/integration/selenium/webdriver/target_locator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,17 @@ module WebDriver
end
end

# only an issue with FF 54 and linux (passing on nightly), remove FF guard when stable is 55
not_compliant_on browser: [:ie, :safari, :firefox] do
not_compliant_on browser: [:ie, :safari] do
context 'with more than two windows' do
after do
# We need to reset driver because browsers behave differently
# when trying to open the same blank target in a new window.
# Sometimes it's opened in a new window (Firefox 55), sometimes
# in the same window (Firefox 57). In any event, this has nothing
# to do with Selenium test.
reset_driver!
end

it 'should close current window when more than two windows exist' do
driver.navigate.to url_for('xhtmlTest.html')
wait_for_element(link: 'Create a new anonymous window')
Expand Down

0 comments on commit 6afbc2e

Please sign in to comment.