use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class SemanticTest method testFindElementByTagName.
@Test
@Severity(SeverityLevel.MINOR)
@Description("Find element by tagName")
public void testFindElementByTagName() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.TAG_NAME, "test_tag").clickSubmitButton().findTestElement(LocatorType.TAG_NAME, "test_tag");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class SemanticTest method testButtonClickWithId.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Button click with find element by id")
public void testButtonClickWithId() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.ID, "change_id").clickSubmitButton().findTestElement(LocatorType.ID, "change_id");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class WaitTest method testConditionWait.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Conditional wait for simple locator")
public void testConditionWait() {
FrameworkPage mainPage = pages.get(String.valueOf(PagesType.MARKUP));
mainPage.openPage().clickTestButton().confirmAlert();
mainPage.generateMarkup().clickTestButton().confirmAlert();
mainPage.generateMarkup().clickTestButtonWaitor(// should be healed
5).confirmAlert();
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class XpathTest method testXpathContains.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("XPath Contains")
public void testXpathContains() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.XPATH, "//input[contains(@class, 'test')]").clickSubmitButton().findTestElement(LocatorType.XPATH, "//input[contains(@class, 'test')]");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class XpathTest method testXpathNotContains.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("XPath Not Contains")
public void testXpathNotContains() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.XPATH, "//input[not(contains(@class, 'input1'))]").clickSubmitButton().findTestElement(LocatorType.XPATH, "//input[not(contains(@class, 'input1'))]");
}
Aggregations