forked from naveenanimation20/WebDriverIO-JavaScriptCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscrollview.test.js
More file actions
28 lines (16 loc) · 739 Bytes
/
scrollview.test.js
File metadata and controls
28 lines (16 loc) · 739 Bytes
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
const crmPage = require("../pages/crm.page")
describe("scroll to element", function(){
it.skip("should scroll to forgot pwd link", function(){
browser.url("https://classic.crmpro.com/")
console.log("in view port", crmPage.forgotpwdLink.isDisplayedInViewport());
crmPage.forgotpwdLink.scrollIntoView();
console.log("in view port", crmPage.forgotpwdLink.isDisplayedInViewport());
crmPage.forgotpwdLink.click();
})
it.skip("should scroll to forgot pwd link, move and click", function(){
browser.url("https://classic.crmpro.com/")
crmPage.forgotpwdLink.scrollIntoView();
crmPage.moveToElement(crmPage.forgotpwdLink)
crmPage.forgotpwdLink.click();
})
})