How to change context in Appium? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to change context in Appium? ...

How to change context in Appium?



//Getting all the context.
Set pContext = driver.getContextHandles();
//Setting it to array to change it.
driver.context(pContext.toArray()[1]);
//Changing it to Native App Context.
driver.context("NATIVE_APP");

Leave a Reply

Your email address will not be published. Required fields are marked *