@@ -1543,8 +1543,8 @@ class Appium extends Webdriver {
15431543 /**
15441544 * {{> dontSeeElement }}
15451545 */
1546- async dontSeeElement ( locator ) {
1547- if ( this . isWeb ) return super . dontSeeElement ( locator )
1546+ async dontSeeElement ( locator , context = null ) {
1547+ if ( this . isWeb ) return super . dontSeeElement ( locator , context )
15481548
15491549 // For mobile native apps, use safe isDisplayed wrapper
15501550 const parsedLocator = parseLocator . call ( this , locator )
@@ -1589,9 +1589,9 @@ class Appium extends Webdriver {
15891589 * {{> fillField }}
15901590 *
15911591 */
1592- async fillField ( field , value ) {
1592+ async fillField ( field , value , context = null ) {
15931593 value = value . toString ( )
1594- if ( this . isWeb ) return super . fillField ( field , value )
1594+ if ( this . isWeb ) return super . fillField ( field , value , context )
15951595 return super . fillField ( parseLocator . call ( this , field ) , value )
15961596 }
15971597
@@ -1706,8 +1706,8 @@ class Appium extends Webdriver {
17061706 * {{> seeElement }}
17071707 *
17081708 */
1709- async seeElement ( locator ) {
1710- if ( this . isWeb ) return super . seeElement ( locator )
1709+ async seeElement ( locator , context = null ) {
1710+ if ( this . isWeb ) return super . seeElement ( locator , context )
17111711
17121712 // For mobile native apps, use safe isDisplayed wrapper
17131713 const parsedLocator = parseLocator . call ( this , locator )
@@ -1754,8 +1754,8 @@ class Appium extends Webdriver {
17541754 *
17551755 * Supported only for web testing
17561756 */
1757- async selectOption ( select , option ) {
1758- if ( this . isWeb ) return super . selectOption ( select , option )
1757+ async selectOption ( select , option , context = null ) {
1758+ if ( this . isWeb ) return super . selectOption ( select , option , context )
17591759 throw new Error ( "Should be used only in Web context. In native context use 'click' method instead" )
17601760 }
17611761
0 commit comments