-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathincog.js
34 lines (26 loc) · 1.04 KB
/
incog.js
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
'use strict';
const webDriver = require('selenium-webdriver');
//to load chrome driver
require('chromedriver');
var chromeCapabilities= webDriver.Capabilities.chrome()
var chromeOptions={'args':['--test-type','--incognito']}
chromeCapabilities.set('chromeOptions',chromeOptions)
let By = webDriver.By;
(async function () {
for (let i=0;i<=40;i++){
try{
let driver= new webDriver.Builder().withCapabilities(chromeCapabilities).build();
await driver.get('http://bit.ly/rorluminaries');
await driver.switchTo().activeElement().sendKeys('\ue00c');
await driver.switchTo().activeElement().sendKeys('\ue00c');
await driver.switchTo().activeElement().sendKeys('\ue00c');
await driver.get('http://www.enterthehealingschool.org');
// await driver.findElement(By.id('my_video_1_html5_api')).click();
driver.quit()
console.log(i)
}
catch (error){
console.log(error)
}
}
})()