use of com.seleniumtests.uipage.htmlelements.ButtonElement in project seleniumRobot by bhecquet.
the class TestFrameElement method testButtonElementOutsideFrame.
@Test(groups = { "ut" })
public void testButtonElementOutsideFrame() throws Exception {
ButtonElement el = new ButtonElement("", By.id("el"));
el.submit();
verify(locator, times(0)).frame(any(WebElement.class));
}
use of com.seleniumtests.uipage.htmlelements.ButtonElement in project seleniumRobot by bhecquet.
the class TestFrameElement method testButtonElementInsideFrame.
/* tests for each element defined in framework */
/**
* check we switched to default content and frame
* @throws Exception
*/
@Test(groups = { "ut" })
public void testButtonElementInsideFrame() throws Exception {
FrameElement frame = new FrameElement("", By.id("frameId"));
ButtonElement el = new ButtonElement("", By.id("el"), frame);
el.submit();
verify(locator).frame(any(WebElement.class));
verify(locator).defaultContent();
}
Aggregations