Example usage for org.openqa.selenium.remote RemoteWebElement equals

List of usage examples for org.openqa.selenium.remote RemoteWebElement equals

Introduction

In this page you can find the example usage for org.openqa.selenium.remote RemoteWebElement equals.

Prototype

@Override
    public boolean equals(Object obj) 

Source Link

Usage

From source file:com.vaadin.testbench.TestBenchElementTest.java

@Test
public void elementsEquals() {
    RemoteWebElement webElement = new RemoteWebElement();
    webElement.setId("remote1");
    TestBenchElement element = TestBenchElement.wrapElement(webElement, null);
    TestBenchElement element2 = TestBenchElement.wrapElement(webElement, null);

    assertTrue(webElement.equals(webElement));
    assertTrue(element.equals(element));
    assertTrue(webElement.equals(element));
    assertTrue(element.equals(webElement));

    assertTrue(element.equals(element2));
    assertTrue(element2.equals(element));

}