Skip to content

Commit 3e2ab19

Browse files
committed
Adding the missing Plugin.page.ts which is a generic plugin page part.
1 parent c5064c2 commit 3e2ab19

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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;

0 commit comments

Comments
 (0)