use of com.seleniumtests.uipage.htmlelements.LinkElement in project seleniumRobot by bhecquet.
the class TestFrameElement method testLinkElementInsideFrame.
@Test(groups = { "ut" })
public void testLinkElementInsideFrame() throws Exception {
FrameElement frame = new FrameElement("", By.id("frameId"));
LinkElement el = new LinkElement("", By.id("el"), frame);
el.click();
verify(locator).frame(any(WebElement.class));
verify(locator).defaultContent();
}
use of com.seleniumtests.uipage.htmlelements.LinkElement in project seleniumRobot by bhecquet.
the class TestFrameElement method testUseElementInsideElementInsideFrame.
/**
* Test that we enter the iframe of the parent element when searching looking a sub-element
* @throws Exception
*/
@Test(groups = { "ut" })
public void testUseElementInsideElementInsideFrame() throws Exception {
FrameElement frame = new FrameElement("", By.id("frameId"));
HtmlElement el = new HtmlElement("", By.id("el"), frame);
LinkElement link = el.findLinkElement(By.id("link"));
link.click();
verify(locator).frame(any(WebElement.class));
verify(locator).defaultContent();
}
use of com.seleniumtests.uipage.htmlelements.LinkElement in project seleniumRobot by bhecquet.
the class TestFrameElement method testLinkElementOutsideFrame.
@Test(groups = { "ut" })
public void testLinkElementOutsideFrame() throws Exception {
LinkElement el = new LinkElement("", By.id("el"));
el.click();
verify(locator, times(0)).frame(any(WebElement.class));
}
Aggregations