Last active
August 12, 2020 08:33
-
-
Save serhatbolsu/2d67e27c8d95010d4832821dd0d1da2e to your computer and use it in GitHub Desktop.
webdriverIO-Page-Object-Parent-class
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 ModalComponent { | |
constructor(element) { | |
this.element = element; | |
} | |
get title() {return this.element.$('h3').getText();} | |
get content() {return this.element.$('p').getText();} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment