forked from naveenanimation20/WebDriverIO-JavaScriptCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblaze.test.js
More file actions
45 lines (30 loc) · 1.19 KB
/
blaze.test.js
File metadata and controls
45 lines (30 loc) · 1.19 KB
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
43
44
45
const blazePage = require("../pages/blazemeter")
describe("blaze page elements handle on the page", function(){
it("get texts of all main links", function(){
browser.url('https://www.blazemeter.com/');
// blazePage.getTextForLi;
// blazePage.useCasesElementsText;
console.log('third link is : ',
blazePage.specifChildElement(3).getText());
blazePage.getSpecificChildElementText(4);
})
it("main heading displayed? ", function(){
console.log( blazePage.mainHeader.isDisplayed());
})
it("main heading enabled? ", function(){
console.log( blazePage.mainHeader.isEnabled());
})
it("main heading exists? ", function(){
console.log( blazePage.mainHeader.isExisting());
})
it("main heading displyed in view port? ", function(){
console.log( blazePage.mainHeader.isDisplayedInViewport());
})
it("jmeter is displeyd in view port ", function(){
console.log( blazePage.jmeterLink.isDisplayedInViewport());
})
it("click on product link if displayed ", function(){
blazePage.clickOnProductLink();
browser.pause(5000);
})
});