Skip to content

switchContext (Native/Hybrid Apps - Interrogation)

Compatible with:
  • Purpose
  • This command switches the context of the mobile device. For moving the context to the native app, the mobile context should be given as 'NATIVE_APP' and to switch back to the OS level, you need to give it as 'CHROMIUM' in the Target field.
  • Syntax
  • switchContext(MobileContext)
  • Target
  • MobileContext (to which the user wants to switch to)
  • Value
  • N/A
  • Return Value
  • N/A
  • Errors & Exceptions 
  • Condition Error/Exception Message
    Empty Target Field Target field should not be empty

Click here to see the example


← Native/Hybrid commands home

Feedback and Knowledge Base