Created
July 24, 2017 08:26
-
-
Save VasilyStrelyaev/291a3748540934cf5c78e661a00b3a96 to your computer and use it in GitHub Desktop.
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 { Selector } from 'testcafe'; | |
export class LoginPage { | |
constructor () { | |
this.login = Selector('#login_field'); | |
this.password = Selector('#password'); | |
this.signIn = Selector('.btn').filter(node => node.value === 'Sign in'); | |
} | |
} | |
export class HomePage { | |
constructor () { | |
this.avatar = Selector('.avatar'); | |
this.dropdownHeader = Selector('.dropdown-header'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment