Search in sources :

Example 26 with FrameworkPage

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

Example 27 with FrameworkPage

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

Example 28 with FrameworkPage

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

Example 29 with FrameworkPage

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

Example 30 with FrameworkPage

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'))]");
}
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