Created
August 12, 2020 08:37
-
-
Save serhatbolsu/f23ba2a61930e06595070758e8bb7198 to your computer and use it in GitHub Desktop.
WebdriverIO-ui-test-automation-textInput.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
import Page from './page'; | |
class TextInput extends Page { | |
get nameField() {return $('#newButtonName');} | |
get button() {return $('#updatingButton');} | |
open() { | |
super.open('textinput'); | |
return this; | |
} | |
updateButtonText(text) { | |
this.nameField.setValue(text); | |
this.button.click(); | |
return this; | |
} | |
getButtonText() { | |
return this.button.getText(); | |
} | |
} | |
export default new TextInput(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment