use of com.seleniumtests.uipage.htmlelements.Table in project seleniumRobot by bhecquet.
the class TestFrameElement method testTableOutsideFrame.
@Test(groups = { "ut" })
public void testTableOutsideFrame() throws Exception {
Table el = new Table("", By.id("el"));
el.getColumns();
verify(locator, times(0)).frame(any(WebElement.class));
}
use of com.seleniumtests.uipage.htmlelements.Table in project seleniumRobot by bhecquet.
the class TestFrameElement method testTableInsideFrame.
@Test(groups = { "ut" })
public void testTableInsideFrame() throws Exception {
FrameElement frame = new FrameElement("", By.id("frameId"));
Table el = new Table("", By.id("el"), frame);
el.getColumns();
// issue #320: as we return HtmlElement instead of WebElement, we need to search for root element (the table) each time we search for columns and cells
verify(locator, times(3)).frame(any(WebElement.class));
verify(locator, times(3)).defaultContent();
}
Aggregations