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
VolodymyrRomanyshyn edited this page Aug 12, 2019
·
3 revisions
MainPage
public class HomePage : BasePage, ILoad
{
[XPath("//*[@class = 'your locators']/..")] public BaseElement DashBoard;
[XPath("//button[@id='your locators']")] public BaseElement Widgets;
// your elements here
public HomePage(BaseDriver baseDriver) : base(baseDriver)
{
}
public bool IsLoaded() =>
DashBoard.IsVisible &&
Widgets.IsVisible &&
Logo.IsVisible;
// verifying if page is loaded here
}