Search in sources :

Example 11 with FrameworkPage

use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.

the class SemanticTest method testFindElementByLinkText.

@Test
@Severity(SeverityLevel.MINOR)
@Description("Find element by linktext")
public void testFindElementByLinkText() {
    FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
    page.openPage().findTestElement(LocatorType.LINK_TEXT, "Change: LinkText, PartialLinkText").clickSubmitButton().findTestElement(LocatorType.LINK_TEXT, "Change: LinkText, PartialLinkText");
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Example 12 with FrameworkPage

use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.

the class SemanticTest method testFindElementByClassName.

@Test
@Severity(SeverityLevel.NORMAL)
@Description("Find element by classname")
public void testFindElementByClassName() {
    FrameworkPage mainPage = pages.get(String.valueOf(PagesType.MARKUP));
    mainPage.openPage().clickTestButton();
    mainPage.confirmAlert();
    mainPage.generateMarkup().clickTestButton();
    mainPage.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 13 with FrameworkPage

use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.

the class XpathTest method testXPathAncestor.

@Test
@Severity(SeverityLevel.MINOR)
@Description("XPath Ancestor::")
public void testXPathAncestor() {
    FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
    page.openPage().findTestElement(LocatorType.XPATH, "(//*[starts-with(@class, 'test')]/ancestor::div[@class='healenium-form validate-form']//input)[1]").clickSubmitButton().findTestElement(LocatorType.XPATH, "(//*[starts-with(@class, 'test')]/ancestor::div[@class='healenium-form validate-form']//input)[1]");
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Example 14 with FrameworkPage

use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.

the class XpathTest method testXpathStartsWith.

@Test
@Severity(SeverityLevel.NORMAL)
@Description("XPath Starts-with")
public void testXpathStartsWith() {
    FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
    page.openPage().findTestElement(LocatorType.XPATH, "//*[starts-with(@class, 'test')]").clickSubmitButton().findTestElement(LocatorType.XPATH, "//*[starts-with(@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 15 with FrameworkPage

use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.

the class XpathTest method testXpathSpecialCharacter.

@Test
@Severity(SeverityLevel.NORMAL)
@Description("XPath with special characters")
public void testXpathSpecialCharacter() {
    FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
    page.openPage().findTestElement(LocatorType.XPATH, "//*[@id='change:name']").clickSubmitButton().findTestElement(LocatorType.XPATH, "//*[@id='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)

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