forked from naveenanimation20/WebDriverIO-JavaScriptCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactions.test.js
More file actions
52 lines (42 loc) · 1.69 KB
/
actions.test.js
File metadata and controls
52 lines (42 loc) · 1.69 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
46
47
48
49
50
51
52
const spicejetPage = require("../pages/actions.page")
describe("page actions Features", function(){
it("move to element", function(){
browser.url("https://www.spicejet.com/");
spicejetPage.moveToElement(spicejetPage.loginSignUpLink);
spicejetPage.moveToElement(spicejetPage.spiceClubMem);
spicejetPage.clickElement(spicejetPage.memberLogin);
browser.pause(3000);
});
it("KEYS action perform Tab", function(){
browser.url("http://the-internet.herokuapp.com/key_presses?");
spicejetPage.enterSearch("Tab");
const text = spicejetPage.getResultLabelText();
console.log(text);
assert.equal("You entered: TAB", text);
browser.pause(3000);
});
it("KEYS action perform Shift", function(){
browser.url("http://the-internet.herokuapp.com/key_presses?");
spicejetPage.enterSearch("Shift");
const text = spicejetPage.getResultLabelText();
console.log(text);
assert.equal("You entered: SHIFT", text);
browser.pause(3000);
});
it("KEYS action perform F1", function(){
browser.url("http://the-internet.herokuapp.com/key_presses?");
spicejetPage.enterSearch("F1");
const text = spicejetPage.getResultLabelText();
console.log(text);
assert.equal("You entered: F1", text);
browser.pause(3000);
});
it("KEYS action perform F1", function(){
browser.url("http://the-internet.herokuapp.com/key_presses?");
spicejetPage.enterSearch("F1");
const text = spicejetPage.getResultLabelText();
console.log(text);
assert.equal("You entered: F1", text);
browser.pause(3000);
});
});