Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix Applitools::Selenium::Element equality #46
The wrapper class
it 'should know when two elements are equal' do driver.navigate.to url_for('simpleTest.html') body = driver.find_element(tag_name: 'body') xbody = driver.find_element(xpath: '//body') expect(body).to eq(xbody) expect(body).to eql(xbody) end
I've added this test to the driver passthrough spec and fixed it by adding support for comparing two
Discovered the problem when one of our Cucumber steps (which we share between Applitools tests and plain Selenium tests) generated this output when we tried to use it in an Applitools test:
It'd be a lot more work, but it might be possible and useful to pull the whole set of selenium integration tests in and verify that they pass using the wrapped driver.