use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class CssTest method testCssIdSpecialCharacter.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Update locator for element with css id with special character")
public void testCssIdSpecialCharacter() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.CSS, "input#change\\:name").clickSubmitButton().findTestElement(LocatorType.CSS, "input#change\\:name");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class CssTest method testCssChecked.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Update locator for element with css Checked")
public void testCssChecked() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.CSS, "input:checked").clickSubmitButton().findTestElement(LocatorType.CSS, "input:checked");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class GeneralTest method testButtonClickWithDisableHealing.
@Test
@Severity(SeverityLevel.MINOR)
@Description("Button click with disable healing")
public void testButtonClickWithDisableHealing() {
FrameworkPage mainPage = pages.get(String.valueOf(PagesType.MARKUP_FIND_BY));
boolean result = mainPage.openPage().clickTestButton().confirmAlert().generateMarkup().checkLocatorTestButtonDontHealing();
assertTrue(result, "The locator was not healed");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class ParentChildTest method testXPathUnderParentFindElements.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Select first checkbox and verify using parent.findElements in Xpath. " + "The difference between first - not use @DisabledHealing")
public void testXPathUnderParentFindElements() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
String parentXpath = "//*[contains(@class,'test-form')]";
String childXpath = "//*[@class='input1']";
page.openPage().findElementsUnderParent(parentXpath, childXpath).clickFormButton().findElementsUnderParent(parentXpath, childXpath);
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class ParentChildTest method testUnderParentFindElements.
@Test
@Severity(SeverityLevel.MINOR)
@Description("Select and verify several inputs via parent.findElement")
public void testUnderParentFindElements() {
FrameworkPage mainPage = pages.get(String.valueOf(PagesType.MARKUP));
mainPage.openPage().generateMarkup();
while (!mainPage.groupInputEnabled()) mainPage.generateMarkup();
// find all locator and fill them. verify their values
// no healing
mainPage.verifyInputText();
mainPage.fillInputsGroup();
// should be healed
mainPage.verifyInputText();
}
Aggregations