Search in sources :

Example 31 with FrameworkPage

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

the class XpathTest method testXpathAnd.

@Test
@Severity(SeverityLevel.MINOR)
@Description("XPath And")
public void testXpathAnd() {
    FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
    page.openPage().findTestElement(LocatorType.XPATH, "//*[@id='change_id' and @type='text']").clickSubmitButton().findTestElement(LocatorType.XPATH, "//*[@id='change_id' and @type='text']");
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Example 32 with FrameworkPage

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

the class XpathTest method testXpathOR.

@Test
@Severity(SeverityLevel.MINOR)
@Description("XPath OR")
public void testXpathOR() {
    FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
    page.openPage().findTestElement(LocatorType.XPATH, "//*[@id='change_id' or @id='omg']").clickSubmitButton().findTestElement(LocatorType.XPATH, "//*[@id='change_id' or @id='omg']");
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Example 33 with FrameworkPage

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

the class XpathTest method testXpathPrecending.

@Test
@Severity(SeverityLevel.MINOR)
@Description("XPath Precending::")
public void testXpathPrecending() {
    FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
    page.openPage().findTestElement(LocatorType.XPATH, "//*[@id='change_className']/preceding::*[@id='change_id']").clickSubmitButton().findTestElement(LocatorType.XPATH, "//*[@id='change_className']/preceding::*[@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 34 with FrameworkPage

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

the class XpathTest method testXpathDescendant.

@Test
@Severity(SeverityLevel.MINOR)
@Description("XPath Descendant::")
public void testXpathDescendant() {
    FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
    page.openPage().findTestElement(LocatorType.XPATH, "//*[@id='descendant_change']/descendant::input").clickSubmitButton().findTestElement(LocatorType.XPATH, "//*[@id='descendant_change']/descendant::input");
}
Also used : FrameworkPage(com.epam.healenium.FrameworkPage) Description(io.qameta.allure.Description) Test(org.junit.jupiter.api.Test) Severity(io.qameta.allure.Severity)

Example 35 with FrameworkPage

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

the class XpathTest method testXpathFollowingSibling.

@Test
@Severity(SeverityLevel.MINOR)
@Description("XPath Following-Sibling")
public void testXpathFollowingSibling() {
    FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
    page.openPage().findTestElement(LocatorType.XPATH, "//*[starts-with(@class, 'test')]/following-sibling::*").clickSubmitButton().findTestElement(LocatorType.XPATH, "//*[starts-with(@class, 'test')]/following-sibling::*");
}
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