Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestBenchElement should implement equals #789

Closed
vaadin-bot opened this issue Jul 15, 2015 · 1 comment
Closed

TestBenchElement should implement equals #789

vaadin-bot opened this issue Jul 15, 2015 · 1 comment
Labels
Milestone

Comments

@vaadin-bot
Copy link
Collaborator

Originally by @Artur-


If you try to do

Assert.assertEquals(tbElement,otherWebElement)

it will always fail because tbElement does not implement equals

On the other hand, if you do

Assert.assertEquals(otherWebElement,tbElement)

it will succeed if the references point to the same element, because RemoteWebElement implements equals and unwraps any wrapped element.


Imported from https://dev.vaadin.com/ issue #18484

@vaadin-bot
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants