新增:

capabilities.setCapability("autoLaunch",false);

 

将setup中的:

driver = new AndroidDriver(new URL("http://127.0.0.1:" + port + "/wd/hub"), capabilities);

driver.launchApp();

第二句:

driver.launchApp()

注释掉

 

相关文章:

  • 2021-09-10
  • 2021-11-13
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-26
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
相关资源
相似解决方案