Skip to content

Instantly share code, notes, and snippets.

@marcelmokos
Created January 4, 2017 02:05
Show Gist options
  • Save marcelmokos/d65436733bd08b5140364e4f68d0592c to your computer and use it in GitHub Desktop.
Save marcelmokos/d65436733bd08b5140364e4f68d0592c to your computer and use it in GitHub Desktop.
Page object example
import Page from "../../utils/Page";
import Common from "./Common";
export default class Homepage extends Page {
selector = $("#page-main");
get = () => {
/**
* Browser window will maximize width and height
*/
browser
.manage()
.window()
.maximize();
browser.get("http://www.thinkcreatix.com/");
this.waitUntilDisplayed();
};
getCommon = () => new Common();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment