We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 279f69b commit f4929deCopy full SHA for f4929de
tests/page_objects/test.js
@@ -1,6 +1,7 @@
1
module.exports = {
2
url: 'http://localhost:9999/pageObjects',
3
elements: {
4
+ thirdDiv: 'div:nth-child(3)',
5
thatButton: 'div:eq(2) #button'
6
}
7
};
tests/runTests.js
@@ -8,7 +8,8 @@ module.exports = {
8
9
pageObject.navigate()
10
.jqueryClick("@thatButton")
11
- .assert.visible("#div");
+ .assert.visible("#div")
12
+ .assert.elementHasChildren("@thirdDiv");
13
14
browser.end();
15
},
0 commit comments