我正在尝试在 saucelabs 上运行带有 webdriver 的 android 模拟器来测试一些网页。这就是我正在使用的能力:
Capabilities capabilities = DesiredCapabilities.android()
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("platformVersion", "4.2");
capabilities.setCapability("deviceName", "Android Emulator");
capabilities.setCapability("deviceType", "phone");
capabilities.setCapability(CapabilityType.BROWSER_NAME, "Android")
然而,这给了我一个错误:
org.openqa.selenium.WebDriverException: Sauce could not start your job. For more information on what happened, please visit (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 21.74 seconds
我找到的所有教程和答案都包括安装 apk 的功能,这不是我需要的。
提前致谢。