-
Notifications
You must be signed in to change notification settings - Fork 0
/
scrapper.js
40 lines (31 loc) · 977 Bytes
/
scrapper.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
35
36
37
38
39
40
const path = require('path')
exports.config = {
runner: "local",
host: "localhost",
path: "/wd/hub",
port: 4723,
logLevel: "silent",
framework: "mocha",
mochaOpts: {
ui: "bdd",
require: ["@babel/register"],
timeout: 600000,
},
maxInstances: 100,
sync: true,
//include what file you would like to reference here while running the js test file
specs: [
` ${path.resolve(__dirname, './api/scrapBySearch.js')}`
],
//array required for wdio which will connect to the appium server and start the app on emulator.
capabilities:[{
"deviceName": "Android Emulator",
"automationName": "appium",
"platformName": "Android",
"appPackage": "com.mcdonalds.au.gma",
"appActivity": "com.mcdonalds.mcdcoreapp.common.activity.SplashActivity",
// "disableAndroidWatchers": true,
// "isHeadless": true
}]
};
console.log("Welcome the scrapping process has started. Please wait as we progress....w")