@@ -995,7 +995,7 @@ class WebDriver extends Helper {
995995 * {{ react }}
996996 */
997997 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'
999999 const locateFn = prepareLocateFn . call ( this , context )
10001000
10011001 const res = await findClickable . call ( this , locator , locateFn )
@@ -1214,7 +1214,7 @@ class WebDriver extends Helper {
12141214 * {{> checkOption }}
12151215 */
12161216 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'
12181218 const locateFn = prepareLocateFn . call ( this , context )
12191219
12201220 const res = await findCheckable . call ( this , field , locateFn )
@@ -1234,7 +1234,7 @@ class WebDriver extends Helper {
12341234 * {{> uncheckOption }}
12351235 */
12361236 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'
12381238 const locateFn = prepareLocateFn . call ( this , context )
12391239
12401240 const res = await findCheckable . call ( this , field , locateFn )
0 commit comments