How do I get the names of available contexts while running app automation tests on LambdaTest?

How do I get the names of available contexts while running app automation tests on LambdaTest?

Hi Brett M,

You can print the available contexts like the NATIVE_APP, WEBVIEW using the below command:

driver.getContextHandles();