use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class ParentChildTest method testParentXpath.
@Test
@Severity(SeverityLevel.MINOR)
@Description("Select first checkbox and verify using parent:: function in Xpath")
public void testParentXpath() {
FrameworkPage mainPage = pages.get(String.valueOf(PagesType.MARKUP));
mainPage.openPage().generateMarkup();
while (!mainPage.displayedText()) mainPage.generateMarkup();
mainPage.selectFirstCheckbox();
boolean result = mainPage.verifyFirstAccountCheckbox();
assertTrue(result, "Verify first account checkbox checked");
mainPage.selectFirstAccountCheckbox();
// should be healed
result = mainPage.verifyFirstAccountCheckbox();
assertTrue(result, "Verify first account checkbox unchecked");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class ParentChildTest method testCSSLastChild.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Select and verify several inputs CSS LastChild")
public void testCSSLastChild() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.CSS, "child_tag:last-child").clickSubmitButton().findTestElement(LocatorType.CSS, "child_tag:last-child");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class ParentChildTest method testCSSFirstChild.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Select and verify several inputs CSS FirstChild")
public void testCSSFirstChild() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.CSS, "test_tag:first-child").clickSubmitButton().findTestElement(LocatorType.CSS, "test_tag:first-child");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class SemanticTest method testFindElementByName.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Find element by name")
public void testFindElementByName() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.NAME, "change_name").clickSubmitButton().findTestElement(LocatorType.NAME, "change_name");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class SemanticTest method testFindElementByPartialLinkText.
@Test
@Severity(SeverityLevel.MINOR)
@Description("Find element by partialLinkText")
public void testFindElementByPartialLinkText() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.PARTIAL_LINK_TEXT, "PartialLinkText").clickSubmitButton().findTestElement(LocatorType.PARTIAL_LINK_TEXT, "PartialLinkText");
}
Aggregations