Skip to content

Commit

Permalink
[rb] remove unnecessary code from test
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jun 16, 2024
1 parent 01fa154 commit 7dafbd4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions rb/spec/integration/selenium/webdriver/element_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -568,16 +568,14 @@ module WebDriver
end

it 'knows when two elements are not equal' do
reset_driver!(args: '--no-sandbox') do |driver|
driver.navigate.to url_for('simpleTest.html')
driver.navigate.to url_for('simpleTest.html')

elements = driver.find_elements(tag_name: 'p')
p1 = elements.fetch(0)
p2 = elements.fetch(1)
elements = driver.find_elements(tag_name: 'p')
p1 = elements.fetch(0)
p2 = elements.fetch(1)

expect(p1).not_to eq(p2)
expect(p1).not_to eql(p2)
end
expect(p1).not_to eq(p2)
expect(p1).not_to eql(p2)
end

it 'returns the same #hash for equal elements when found by Driver#find_element' do
Expand Down

0 comments on commit 7dafbd4

Please sign in to comment.