use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class SelenideContext method useSettings.
@Override
public HashMap<String, FrameworkPage> useSettings() {
HashMap<String, FrameworkPage> selenideContext = new HashMap<>();
selenideContext.put(String.valueOf(PagesType.TEST_ENV), new SelenideTestEnvPage());
selenideContext.put(String.valueOf(PagesType.CALLBACK), new SelenideCallbackPage());
selenideContext.put(String.valueOf(PagesType.MARKUP), new SelenideMarkupPage());
selenideContext.put(String.valueOf(PagesType.MARKUP_FIND_BY), new SelenideMainPageWithFindBy());
return selenideContext;
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class SeleniumContext method useSettings.
@Override
public HashMap<String, FrameworkPage> useSettings() {
HashMap<String, FrameworkPage> seleniumContext = new HashMap<>();
seleniumContext.put(String.valueOf(PagesType.TEST_ENV), new TestEnvPage(this.driver));
seleniumContext.put(String.valueOf(PagesType.MARKUP), new MarkupPage(this.driver));
seleniumContext.put(String.valueOf(PagesType.MARKUP_FIND_BY), new MainPageWithFindBy(this.driver));
seleniumContext.put(String.valueOf(PagesType.CALLBACK), new CallbackPage(this.driver));
return seleniumContext;
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class CssTest method testCssAttribute.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Update locator for element with css attribute")
public void testCssAttribute() {
FrameworkPage callbackTestPage = pages.get(String.valueOf(PagesType.CALLBACK));
boolean result = callbackTestPage.openPage().clickAddSquareButton().verifySquareElement();
assertTrue(result, "Element with css enabled");
for (int i = 0; i <= 2; i++) {
result = callbackTestPage.clickUpdateSquareButton().verifySquareElement();
assertTrue(result, "Element with css was healed");
}
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class CssTest method testCssClassName.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Update locator for element with css ClassName")
public void testCssClassName() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.CSS, ".test_class").clickSubmitButton().findTestElement(LocatorType.CSS, ".test_class");
}
use of com.epam.healenium.FrameworkPage in project healenium-example-maven by healenium.
the class CssTest method testCssId.
@Test
@Severity(SeverityLevel.NORMAL)
@Description("Update locator for element with css id")
public void testCssId() {
FrameworkPage page = pages.get(String.valueOf(PagesType.TEST_ENV));
page.openPage().findTestElement(LocatorType.CSS, "#change_id").clickSubmitButton().findTestElement(LocatorType.CSS, "#change_id");
}
Aggregations