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