froth-webdriverio-framework 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/android.conf.js +3 -2
- package/config/setallDatailinBuffer.js +0 -3
- package/mobile/commonMethods/Utils.js +22 -28
- package/mobile/commonMethods/scrollDownToView.js +2 -2
- package/mobile/commonMethods/scrollRightToView.js +2 -2
- package/mobile/commonMethods/scrollToBeginning.js +2 -2
- package/mobile/commonMethods/scrollToEnd.js +3 -2
- package/mobile/commonMethods/scrollToLeft.js +2 -2
- package/mobile/commonMethods/scrollToRight.js +2 -2
- package/package.json +10 -11
- package/storage/ADMIN_PASSWORD +0 -1
- package/storage/ADMIN_USER +0 -1
- package/storage/EMAIL +0 -1
- package/storage/PASSWORD +0 -1
package/config/android.conf.js
CHANGED
|
@@ -2,6 +2,7 @@ const deepmerge = require('deepmerge')
|
|
|
2
2
|
const commonmobileconfig = require('./common.mobile.conf');
|
|
3
3
|
console.log("device name in android:", process.env.DEVICENAME);
|
|
4
4
|
console.log("BUILD_NUMBER:", process.env.BUILD_NUMBER);
|
|
5
|
+
console.log("device name in BROWSERSTACK_APP_PATH:", process.env.BROWSERSTACK_APP_PATH);
|
|
5
6
|
|
|
6
7
|
const androidConfig = deepmerge.all([commonmobileconfig, {
|
|
7
8
|
services: [
|
|
@@ -20,8 +21,8 @@ const androidConfig = deepmerge.all([commonmobileconfig, {
|
|
|
20
21
|
|
|
21
22
|
capabilities: [{
|
|
22
23
|
'bstack:options': {
|
|
23
|
-
deviceName: process.env.DEVICENAME
|
|
24
|
-
platformVersion: process.env.OSVERSION
|
|
24
|
+
deviceName: process.env.DEVICENAME ,
|
|
25
|
+
platformVersion: process.env.OSVERSION ,
|
|
25
26
|
platformName: 'android',
|
|
26
27
|
interactiveDebugging: true
|
|
27
28
|
}
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
// This file contains the common methods that are used in the test scripts
|
|
2
|
-
|
|
3
|
-
let ClickIfVisible=null;
|
|
4
|
-
let VerifyTextInFieldAttribute= null;
|
|
5
|
-
let ScrollToBeginning = null;
|
|
6
|
-
let ScrollToLeft = null;
|
|
7
|
-
let ScrollToRight = null;
|
|
8
|
-
let ScrollDownToView= null;
|
|
9
|
-
let ScrollRightToView= null;
|
|
10
|
-
let verifyText= null;
|
|
2
|
+
|
|
11
3
|
|
|
12
4
|
//if(process.env.LOCATION == 'local'){
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
//ScrollToEnd = require('./ScrollToEnd');
|
|
6
|
+
const scrollToEnd = require("./scrollToEnd");
|
|
7
|
+
const clickIfVisible = require("./clickIfVisible");
|
|
8
|
+
const verifyTextInFieldAttribute = require('./verifyTextInFieldAttribute');
|
|
9
|
+
const scrollToBeginning = require('./scrollToBeginning');
|
|
10
|
+
const scrollToLeft = require('./scrollToLeft');
|
|
11
|
+
const scrollToRight = require('./scrollToRight');
|
|
12
|
+
const scrollDownToView = require('./scrollDownToView');
|
|
13
|
+
const scrollRightToView = require('./scrollRightToView');
|
|
14
|
+
const verifyText = require('./verifyText');
|
|
22
15
|
// }else{
|
|
23
16
|
// ScrollToEnd = require('froth-webdriverio-framework/mobile/commonMethods/scrollToEnd');
|
|
24
17
|
// ClickIfVisible= require('froth-webdriverio-framework/mobile/commonMethods/clickIfVisible');
|
|
@@ -30,15 +23,16 @@ let verifyText= null;
|
|
|
30
23
|
// ScrollRightToView= require('froth-webdriverio-framework/mobile/commonMethods/scrollRightToView');
|
|
31
24
|
// verifyText= require('froth-webdriverio-framework/mobile/commonMethods/verifyText');
|
|
32
25
|
// }
|
|
33
|
-
//
|
|
26
|
+
//export the variabels
|
|
27
|
+
|
|
34
28
|
module.exports = {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
scrollToEnd,
|
|
30
|
+
clickIfVisible,
|
|
31
|
+
verifyTextInFieldAttribute,
|
|
32
|
+
scrollToBeginning,
|
|
33
|
+
scrollToLeft,
|
|
34
|
+
scrollToRight,
|
|
35
|
+
scrollDownToView,
|
|
36
|
+
scrollRightToView,
|
|
43
37
|
verifyText
|
|
44
|
-
};
|
|
38
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
async function
|
|
1
|
+
async function scrollDownToView(text) {
|
|
2
2
|
|
|
3
3
|
try {
|
|
4
4
|
console.log('Scrolling down until text is found');
|
|
@@ -9,4 +9,4 @@ async function ScrollDownToView(text) {
|
|
|
9
9
|
console.error(error.message);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
module.exports =
|
|
12
|
+
module.exports = scrollDownToView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
async function
|
|
1
|
+
async function scrollRightToView(text) {
|
|
2
2
|
|
|
3
3
|
try {
|
|
4
4
|
console.log('Scrolling to right until text is found');
|
|
@@ -9,4 +9,4 @@ async function ScrollRightToView(text) {
|
|
|
9
9
|
console.error(error.message);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
module.exports =
|
|
12
|
+
module.exports = scrollRightToView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
async function
|
|
1
|
+
async function scrollToBeginning(maxSwipes,steps) {
|
|
2
2
|
|
|
3
3
|
try {
|
|
4
4
|
console.log('Scrolling to beginning');
|
|
@@ -9,4 +9,4 @@ async function ScrollToBeginning(maxSwipes,steps) {
|
|
|
9
9
|
console.error(error.message);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
module.exports =
|
|
12
|
+
module.exports = scrollToBeginning;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
async function
|
|
1
|
+
async function scrollToEnd(maxSwipes,steps) {
|
|
2
2
|
|
|
3
3
|
try {
|
|
4
4
|
console.log('Scrolling to end');
|
|
@@ -9,4 +9,5 @@ async function ScrollToEnd(maxSwipes,steps) {
|
|
|
9
9
|
console.error(error.message);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
module.exports = scrollToEnd;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
async function
|
|
1
|
+
async function scrollToLeft(steps) {
|
|
2
2
|
|
|
3
3
|
try {
|
|
4
4
|
console.log('Scrolling to left');
|
|
@@ -9,4 +9,4 @@ async function ScrollToLeft(steps) {
|
|
|
9
9
|
console.error(error.message);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
module.exports =
|
|
12
|
+
module.exports = scrollToLeft;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
async function
|
|
1
|
+
async function scrollToRight(steps) {
|
|
2
2
|
|
|
3
3
|
try {
|
|
4
4
|
console.log('Scrolling to right');
|
|
@@ -9,4 +9,4 @@ async function ScrollToRight(steps) {
|
|
|
9
9
|
console.error(error.message);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
module.exports =
|
|
12
|
+
module.exports = scrollToRight;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "froth-webdriverio-framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"readme": "WendriverIO Integration with [BrowserStack]",
|
|
5
5
|
"description": "WebdriverIO and BrowserStack App Automate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,21 +25,20 @@
|
|
|
25
25
|
"appium"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@wdio/appium-service": "^8.
|
|
29
|
-
"@wdio/browserstack-service": "^
|
|
30
|
-
"@wdio/cli": "^
|
|
31
|
-
"@wdio/local-runner": "^
|
|
32
|
-
"@wdio/mocha-framework": "^8.
|
|
33
|
-
"@wdio/spec-reporter": "^8.
|
|
34
|
-
"appium": "^2.
|
|
35
|
-
"appium-uiautomator2-driver": "^
|
|
28
|
+
"@wdio/appium-service": "^8.0.9",
|
|
29
|
+
"@wdio/browserstack-service": "^7.16.4",
|
|
30
|
+
"@wdio/cli": "^7.16.4",
|
|
31
|
+
"@wdio/local-runner": "^7.16.4",
|
|
32
|
+
"@wdio/mocha-framework": "^8.39.0",
|
|
33
|
+
"@wdio/spec-reporter": "^8.39.0",
|
|
34
|
+
"appium": "^2.3.0",
|
|
35
|
+
"appium-uiautomator2-driver": "^2.38.0",
|
|
36
36
|
"browserstack-local": "^1.5.5",
|
|
37
37
|
"deepmerge": "^4.3.1",
|
|
38
38
|
"form-data": "^4.0.0",
|
|
39
39
|
"node-fetch": "^3.3.2",
|
|
40
40
|
"node-localstorage": "^3.0.5",
|
|
41
41
|
"ts-node": "^10.9.2",
|
|
42
|
-
"typescript": "^5.
|
|
42
|
+
"typescript": "^5.5.2"
|
|
43
43
|
}
|
|
44
|
-
|
|
45
44
|
}
|
package/storage/ADMIN_PASSWORD
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
QgCY72/szqZ@(ap&
|
package/storage/ADMIN_USER
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ytladmin
|
package/storage/EMAIL
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0184310814@YES.MY
|
package/storage/PASSWORD
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
password
|