@wdio/protocols
Advanced tools
Comparing version 5.16.7 to 5.18.7
{ | ||
"name": "@wdio/protocols", | ||
"version": "5.16.7", | ||
"version": "5.18.7", | ||
"description": "Utility package providing information about automation protocols", | ||
@@ -30,3 +30,3 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
}, | ||
"gitHead": "f85d0659670a517e119fb1987f533a07422f8c15" | ||
"gitHead": "7bb864ddc391fec9f5ccf3c1bcab1ff18979c0ee" | ||
} |
@@ -1311,2 +1311,41 @@ { | ||
}], | ||
"examples": [ | ||
[ | ||
"// do a horizontal swipe by percentage", | ||
"const startPercentage = 10;", | ||
"const endPercentage = 90;", | ||
"const anchorPercentage = 50;", | ||
"", | ||
"const { width, height } = driver.getWindowSize();", | ||
"const anchor = height * anchorPercentage / 100;", | ||
"const startPoint = width * startPercentage / 100;", | ||
"const endPoint = width * endPercentage / 100;", | ||
"driver.touchPerform([", | ||
" {", | ||
" action: 'press',", | ||
" options: {", | ||
" x: startPoint,", | ||
" y: anchor,", | ||
" },", | ||
" },", | ||
" {", | ||
" action: 'wait',", | ||
" options: {", | ||
" ms: 100,", | ||
" },", | ||
" },", | ||
" {", | ||
" action: 'moveTo',", | ||
" options: {", | ||
" x: endPoint,", | ||
" y: anchor,", | ||
" },", | ||
" },", | ||
" {", | ||
" action: 'release',", | ||
" options: {},", | ||
" },", | ||
"]);" | ||
] | ||
], | ||
"support": { | ||
@@ -1313,0 +1352,0 @@ "android": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
169553
4501