@@ -368,7 +368,7 @@ class Appium extends Webdriver {
368368      if  ( context . web )  return  this . switchToWeb ( context . web ) ; 
369369      if  ( context . webview )  return  this . switchToWeb ( context . webview ) ; 
370370    } 
371-     return  this . _switchToContext ( context ) ; 
371+     return  this . switchToContext ( context ) ; 
372372  } 
373373
374374  _withinEnd ( )  { 
@@ -834,7 +834,7 @@ class Appium extends Webdriver {
834834   * 
835835   * @param  {* } context the context to switch to 
836836   */ 
837-   async  _switchToContext ( context )  { 
837+   async  switchToContext ( context )  { 
838838    return  this . browser . switchContext ( context ) ; 
839839  } 
840840
@@ -858,11 +858,11 @@ class Appium extends Webdriver {
858858    this . isWeb  =  true ; 
859859    this . defaultContext  =  'body' ; 
860860
861-     if  ( context )  return  this . _switchToContext ( context ) ; 
861+     if  ( context )  return  this . switchToContext ( context ) ; 
862862    const  contexts  =  await  this . grabAllContexts ( ) ; 
863863    this . debugSection ( 'Contexts' ,  contexts . toString ( ) ) ; 
864864    for  ( const  idx  in  contexts )  { 
865-       if  ( contexts [ idx ] . match ( / ^ W E B V I E W / ) )  return  this . _switchToContext ( contexts [ idx ] ) ; 
865+       if  ( contexts [ idx ] . match ( / ^ W E B V I E W / ) )  return  this . switchToContext ( contexts [ idx ] ) ; 
866866    } 
867867
868868    throw  new  Error ( 'No WEBVIEW could be guessed, please specify one in params' ) ; 
@@ -885,8 +885,8 @@ class Appium extends Webdriver {
885885    this . isWeb  =  false ; 
886886    this . defaultContext  =  '//*' ; 
887887
888-     if  ( context )  return  this . _switchToContext ( context ) ; 
889-     return  this . _switchToContext ( 'NATIVE_APP' ) ; 
888+     if  ( context )  return  this . switchToContext ( context ) ; 
889+     return  this . switchToContext ( 'NATIVE_APP' ) ; 
890890  } 
891891
892892  /** 
0 commit comments