Skip to content

Commit ee90fb8

Browse files
committed
fixed appium documentation for perform swipe
1 parent a6e41cf commit ee90fb8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/helper/ApiDataFactory.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ class ApiDataFactory extends Helper {
280280
*
281281
* // create 3 posts by one author
282282
* I.haveMultiple('post', 3, { author: 'davert' });
283-
*
283+
*
284284
* // create 3 posts by one author with options
285285
* I.haveMultiple('post', 3, { author: 'davert' }, { publish_date: '01.01.1997' });
286286
* ```

lib/helper/Appium.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -976,11 +976,11 @@ class Appium extends Webdriver {
976976
* Perform a swipe on the screen.
977977
*
978978
* ```js
979-
* I.performswipe(100,200);
979+
* I.performSwipe({ x: 300, y: 100 }, { x: 200, y: 100 });
980980
* ```
981981
*
982-
* @param {number} from
983-
* @param {number} to
982+
* @param {object} from
983+
* @param {object} to
984984
*
985985
* Appium: support Android and iOS
986986
*/

lib/plugin/eachElement.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,4 @@ module.exports = function (config) {
124124
global.eachElement = eachElement;
125125
}
126126
return eachElement;
127-
}
127+
};

0 commit comments

Comments
 (0)