use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class SemanticTest method testFindElementByLinkText.
@Test
@Severity(SeverityLevel.MINOR)
@Description("Find element by linktext")
public void testFindElementByLinkText() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.LINK_TEXT, "Change: LinkText, PartialLinkText").clickSubmitButton().findTestElement(LocatorType.LINK_TEXT, "Change: LinkText, PartialLinkText");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class SemanticTest method testFindElementByClassName.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Find element by classname")
public void testFindElementByClassName() {
FrameworkPage mainPage = pages.get(String.valueOf(PagesType.MARKUP));
mainPage.openPage().clickTestButton();
mainPage.confirmAlert();
mainPage.generateMarkup().clickTestButton();
mainPage.confirmAlert();
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class XpathTest method testXPathAncestor.
@Test
@Severity(SeverityLevel.MINOR)
@Description("XPath Ancestor::")
public void testXPathAncestor() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.XPATH, "(//*[starts-with(@class, 'test')]/ancestor::div[@class='healenium-form validate-form']//input)[1]").clickSubmitButton().findTestElement(LocatorType.XPATH, "(//*[starts-with(@class, 'test')]/ancestor::div[@class='healenium-form validate-form']//input)[1]");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class XpathTest method testXpathStartsWith.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("XPath Starts-with")
public void testXpathStartsWith() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.XPATH, "//*[starts-with(@class, 'test')]").clickSubmitButton().findTestElement(LocatorType.XPATH, "//*[starts-with(@class, 'test')]");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class XpathTest method testXpathSpecialCharacter.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("XPath with special characters")
public void testXpathSpecialCharacter() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.XPATH, "//*[@id='change:name']").clickSubmitButton().findTestElement(LocatorType.XPATH, "//*[@id='change:name']");
}
Aggregations