Search in sources :

Example 21 with FrameworkPage

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");
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Example 22 with FrameworkPage

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");
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Example 23 with FrameworkPage

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");
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Example 24 with FrameworkPage

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");
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Example 25 with FrameworkPage

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");
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Aggregations

FrameworkPage (com.epam.healenium.FrameworkPage)36 Description (io.qameta.allure.Description)34 Severity (io.qameta.allure.Severity)34 Test (org.junit.jupiter.api.Test)34 HashMap (java.util.HashMap)2 SelenideCallbackPage (com.epam.healenium.selenide.pageobject.callback.SelenideCallbackPage)1 SelenideMainPageWithFindBy (com.epam.healenium.selenide.pageobject.markup.SelenideMainPageWithFindBy)1 SelenideMarkupPage (com.epam.healenium.selenide.pageobject.markup.SelenideMarkupPage)1 SelenideTestEnvPage (com.epam.healenium.selenide.pageobject.testenv.SelenideTestEnvPage)1 CallbackPage (com.epam.healenium.selenium.pageobject.callback.CallbackPage)1 MainPageWithFindBy (com.epam.healenium.selenium.pageobject.markup.MainPageWithFindBy)1 MarkupPage (com.epam.healenium.selenium.pageobject.markup.MarkupPage)1 TestEnvPage (com.epam.healenium.selenium.pageobject.testenv.TestEnvPage)1