我正在尝试从appium java客户端启动带有appium服务器的telegram应用程序。电报正在启动,但它需要通过短信进行身份验证。我想我应该提供身份验证令牌或电话号码作为参数,但我不明白如何。这是示例代码。
public static void main(String[] args) throws MalformedURLException {
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", "pixel");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("platformVersion", "9.0");
capabilities.setCapability("udid", "*******");
capabilities.setCapability("appPackage", "org.telegram.messenger");
capabilities.setCapability("appActivity", "org.telegram.ui.LaunchActivity");
AndroidDriver driver = new AndroidDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities);
}
暂无答案!
目前还没有任何答案,快来回答吧!