Created
August 12, 2020 08:36
-
-
Save serhatbolsu/36d150d543670e42db90ea04ef16c83a to your computer and use it in GitHub Desktop.
WebdriverIO-ui-test-automation-page.js
This file contains hidden or 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
export default class Page { | |
constructor() { | |
this.title = 'my Page'; | |
} | |
open(path) { | |
browser.url(path); | |
} | |
verifyTextInPage(text) { | |
const pageText = $('body').getText(); | |
const position = pageText.search(text); | |
chai.expect(position).to.be.above(0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment