Created
January 4, 2017 02:05
-
-
Save marcelmokos/d65436733bd08b5140364e4f68d0592c to your computer and use it in GitHub Desktop.
Page object example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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