You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed previously our page object model has some design flaws which could be handled more elegantly.
Please rework the abstract components and abstract page objects to better match the java naming conventions and offer a slightly different set of methods.
public abstract class AbstractComponent<T extends AbstractComponent<T>>
{
abstract public boolean isComponentAvailable();
abstract public T validateStructure();
}
and
public abstract class AbstractPageObject<T extends AbstractPageObject<T>>
{
//....
public abstract boolean isExpectedPage();
public T assertExcpectedPage()
{
SelenideAddons.wrapAssertionError(() -> {
Assert.assertTrue("Page could not be identified", isExpectedPage());
});
return (T) this;
}
public abstract T validateStructure();
}
The text was updated successfully, but these errors were encountered:
As discussed previously our page object model has some design flaws which could be handled more elegantly.
Please rework the abstract components and abstract page objects to better match the java naming conventions and offer a slightly different set of methods.
and
The text was updated successfully, but these errors were encountered: