Skip to content

Instantly share code, notes, and snippets.

@VasilyStrelyaev
Created July 24, 2017 08:26
Show Gist options
  • Save VasilyStrelyaev/291a3748540934cf5c78e661a00b3a96 to your computer and use it in GitHub Desktop.
Save VasilyStrelyaev/291a3748540934cf5c78e661a00b3a96 to your computer and use it in GitHub Desktop.
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