use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class CssTest method testCssElement.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Update locator for element with css Element")
public void testCssElement() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.CSS, "test_tag").clickSubmitButton().findTestElement(LocatorType.CSS, "test_tag");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class CssTest method testCssDisabled.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Update locator for element with css Disabled")
public void testCssDisabled() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.CSS, "input:disabled").clickSubmitButton().findTestElement(LocatorType.CSS, "input:disabled");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class CssTest method testCssEnabled.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Update locator for element with css Enabled")
public void testCssEnabled() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.CSS, "textarea:enabled").clickSubmitButton().findTestElement(LocatorType.CSS, "textarea:enabled");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class GeneralTest method testButtonClickWithFindByAnnotationPage.
@Test
@Severity(SeverityLevel.TRIVIAL)
@Description("Button click with FindBy annotation")
public void testButtonClickWithFindByAnnotationPage() {
FrameworkPage mainPage = pages.get(String.valueOf(PagesType.MARKUP_FIND_BY));
mainPage.openPage().clickTestButton().confirmAlert().generateMarkup().clickTestButton();
// confirm Alert again
mainPage.confirmAlert();
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class GeneralTest method testSelectCheckboxes.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Select checkboxes with findElements annotation")
public void testSelectCheckboxes() {
FrameworkPage mainPage = pages.get(String.valueOf(PagesType.MARKUP));
mainPage.openPage();
while (!mainPage.displayedText()) mainPage.generateMarkup();
// find via findElements
int selectCount = mainPage.selectAllCheckboxes();
// should be healed and unchecked
int selectCountHealed = mainPage.selectAllCheckboxes();
Assertions.assertEquals(selectCount, selectCountHealed, "The same number of locator for checkbox with findElements has been healed");
}
Aggregations