forked from wevote/WebApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathballot.page.js
42 lines (32 loc) · 884 Bytes
/
ballot.page.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { $ } from '@wdio/globals';
import Page from './page';
class BallotPage extends Page {
constructor () {
super().title = 'Ballot - WeVote';
}
get getViewBallotElement () {
return $('(//button[contains(@id, "viewUpcomingBallot")])[1]');
}
get getBallotTopElement () {
return $('#ballotTabHeaderBar');
}
get getBallotAddressElement () {
return $(' #ballotTitleBallotAddress span');
}
get getBallotModalTitleElement () {
return $('#SelectBallotModalTitleId');
}
get getBallotModalCloseElement () {
return $('#profileCloseSelectBallotModal');
}
get getBallotModalInputElement () {
return $('#entryBox');
}
get getBallotModalSaveElement () {
return $('#addressBoxModalSaveButton');
}
get getBallotModalCancelElement () {
return $('#addressBoxModalCancelButton');
}
}
export default new BallotPage();