froth-webdriverio-framework 1.0.22 → 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/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 +1 -1
|
@@ -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;
|