How can you switch between UIAutomator and UIAutomator2 in your Appium test script?

  • Desired Capabilities, SetCapability("automationName", "UIAutomator")
  • SetCapability("automationName", "DefaultUIAutomator")
  • SetCapability("automationName", "SwitchUIAutomator")
  • SetCapability("automationName", "UIAutomator2")
To switch between UIAutomator and UIAutomator2 in an Appium test script, use the Desired Capabilities and set "automationName" to "UIAutomator2." This ensures the script uses the UIAutomator2 automation engine.
Add your answer
Loading...

Leave a comment

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