Search in sources :

Example 6 with FakeTableElement

use of org.definitylabs.flue2ent.data.FakeTableElement in project flue2ent by DefinityLabs.

the class SimpleWebElementDecoratorProxyTest method findElement_webElement_returnsNestedElement.

@Test
public void findElement_webElement_returnsNestedElement() {
    WebElementWrapper webElementWrapper = new WebElementWrapper(webElement);
    FakeTableElement fakeTableElement = SimpleWebElementDecoratorProxy.newInstance(FakeTableElement.class, webElementWrapper);
    expectedException.expect(RuntimeException.class);
    expectedException.expectMessage("Method not implemented");
    fakeTableElement.webElement(0);
}
Also used : FakeTableElement(org.definitylabs.flue2ent.data.FakeTableElement) WebElementWrapper(org.definitylabs.flue2ent.element.WebElementWrapper) Test(org.junit.Test)

Example 7 with FakeTableElement

use of org.definitylabs.flue2ent.data.FakeTableElement in project flue2ent by DefinityLabs.

the class SimpleWebElementDecoratorProxyTest method findElement_undefined_returnsNestedElement.

@Test
public void findElement_undefined_returnsNestedElement() {
    WebElementWrapper webElementWrapper = new WebElementWrapper(webElement);
    FakeTableElement fakeTableElement = SimpleWebElementDecoratorProxy.newInstance(FakeTableElement.class, webElementWrapper);
    expectedException.expect(RuntimeException.class);
    expectedException.expectMessage("Method not implemented");
    fakeTableElement.undefined();
}
Also used : FakeTableElement(org.definitylabs.flue2ent.data.FakeTableElement) WebElementWrapper(org.definitylabs.flue2ent.element.WebElementWrapper) Test(org.junit.Test)

Aggregations

FakeTableElement (org.definitylabs.flue2ent.data.FakeTableElement)7 Test (org.junit.Test)7 WebElementWrapper (org.definitylabs.flue2ent.element.WebElementWrapper)5 WebElement (org.openqa.selenium.WebElement)3 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)1