public HomePage(WebDriver driver, LoadableComponent parent, String email, String password) { super(driver); this.parent = parent; this.email = email; this.password = password; }
PublicIsLoadableComponent(LoadableComponent aPage){ this.page = aPage; }
public PublicLoadableComponentWaiter(LoadableComponent aComponent) { clock = new SystemClock(); this.componentName = aComponent.getClass().getCanonicalName(); this.isLoadedPage = new PublicIsLoadableComponent(aComponent); }
/** * Static method to create a PublicLoadableComponentWaiter which Waits until a loadable component hasLoaded * this is just a bit of syntactic sugar so we can write WaitUntil.page(aPage).hasLoaded(); * @param aPage * @return */ public static PublicLoadableComponentWaiter page(LoadableComponent aPage){ return new PublicLoadableComponentWaiter(aPage); }