python - Appium 在 iOS(真实设备)上访问 URL 会遇到 "(' Connection aborted .', BadStatusLine("''",))"

标签 python ios webdriver appium

我的Python Appium客户端版本是0.48

我在iOS真机上使用Appium访问URL:

iOS_driver.get("http://link.xxx/")

会遇到错误:

raise BadStatusLine(line)
ProtocolError: ('Connection aborted.', BadStatusLine("''",))

还有其他方法可以在 iOS 真实设备上打开 url 或深层链接吗?

最佳答案

它的工作原理是这样的:

driver.get("theapp://path/);,其中path是实际链接

真实例子: driver.get("theapp://login/user1/test123456");

您可以查看有关它的文章 here

关于python - Appium 在 iOS(真实设备)上访问 URL 会遇到 "(' Connection aborted .', BadStatusLine("''",))",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59627978/

相关文章:

java - 我想在 Selenium 中按类抽象

java - Selenium webdriver 可以附加到已经打开的浏览器窗口吗?

python - 使用相同来源的余弦相似度和完全不同的结果

ios - 将服务器响应加载到 UICollectionView

python - 无法为 python 3.6 安装 BeautifulSoup

ios - iPad presentViewController 总是全屏(需要 formSheet)iOS6

javascript - 以编程方式在 WebView 中以全屏方式打开 youtube 视频的 iframe - iOS

java - 这在 Java 中实际上是什么?

python - 合并列表中的项目 - Python

python - 如何在 PyMC3 中定义自定义先验