@@ -995,7 +995,7 @@ class WebDriver extends Helper {
995
995
* {{ react }}
996
996
*/
997
997
async click ( locator , context = null ) {
998
- const clickMethod = this . browser . isMobile && ! this . browser . isW3C ? 'touchClick' : 'elementClick'
998
+ const clickMethod = this . browser . isMobile && this . browser . capabilities . platformName !== 'android' ? 'touchClick' : 'elementClick'
999
999
const locateFn = prepareLocateFn . call ( this , context )
1000
1000
1001
1001
const res = await findClickable . call ( this , locator , locateFn )
@@ -1214,7 +1214,7 @@ class WebDriver extends Helper {
1214
1214
* {{> checkOption }}
1215
1215
*/
1216
1216
async checkOption ( field , context = null ) {
1217
- const clickMethod = this . browser . isMobile && ! this . browser . isW3C ? 'touchClick' : 'elementClick'
1217
+ const clickMethod = this . browser . isMobile && this . browser . capabilities . platformName !== 'android' ? 'touchClick' : 'elementClick'
1218
1218
const locateFn = prepareLocateFn . call ( this , context )
1219
1219
1220
1220
const res = await findCheckable . call ( this , field , locateFn )
@@ -1234,7 +1234,7 @@ class WebDriver extends Helper {
1234
1234
* {{> uncheckOption }}
1235
1235
*/
1236
1236
async uncheckOption ( field , context = null ) {
1237
- const clickMethod = this . browser . isMobile && ! this . browser . isW3C ? 'touchClick' : 'elementClick'
1237
+ const clickMethod = this . browser . isMobile && this . browser . capabilities . platformName !== 'android' ? 'touchClick' : 'elementClick'
1238
1238
const locateFn = prepareLocateFn . call ( this , context )
1239
1239
1240
1240
const res = await findCheckable . call ( this , field , locateFn )
0 commit comments