Skip to content

Commit f4929de

Browse files
committed
added another test for pageObjects
1 parent 279f69b commit f4929de

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/page_objects/test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
url: 'http://localhost:9999/pageObjects',
33
elements: {
4+
thirdDiv: 'div:nth-child(3)',
45
thatButton: 'div:eq(2) #button'
56
}
67
};

tests/runTests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ module.exports = {
88

99
pageObject.navigate()
1010
.jqueryClick("@thatButton")
11-
.assert.visible("#div");
11+
.assert.visible("#div")
12+
.assert.elementHasChildren("@thirdDiv");
1213

1314
browser.end();
1415
},

0 commit comments

Comments
 (0)