File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
eform-client/e2e/Page objects Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ import Page from './Page' ;
2+ import DatabaseConfigurationConstants from '../Constants/DatabaseConfigurationConstants' ;
3+
4+ class PluginPage extends Page {
5+ constructor ( ) {
6+ super ( ) ;
7+ }
8+
9+ public ClickDropdown ( id ) {
10+ return browser . element ( `#${ id } ` ) . click ( ) ;
11+ }
12+
13+ public get saveBtn ( ) {
14+ return browser . element ( '#saveBtn' ) ;
15+ }
16+
17+ public get pluginSettingsBtn ( ) {
18+ return browser . element ( '#plugin-settings-btn' ) ;
19+ }
20+
21+ public save ( ) {
22+ this . saveBtn . click ( ) ;
23+ }
24+
25+ public selectValue ( dropdownId , id , value ) {
26+ this . ClickDropdown ( dropdownId ) ;
27+ browser . element ( `//*[@id="${ id } "]//*[text()="${ value } "]` ) . click ( ) ;
28+ browser . pause ( 4000 ) ;
29+ }
30+ }
31+
32+ const pluginPage = new PluginPage ( ) ;
33+ export default pluginPage ;
You can’t perform that action at this time.
0 commit comments