Appium_iOS测试脚本

Posted jiguanghover

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Appium_iOS测试脚本相关的知识,希望对你有一定的参考价值。

 经过不断的调试WebDriverAgent, 现在终于可以执行ios的自动化测试脚本了,??????

# This sample code uses the Appium python client
# pip install Appium-Python-Client
# Then you can paste this into a file and simply run with Python

from appium import webdriver

caps = {}
caps["browserName"] = "Safari"
caps["deviceName"] = "iPhone 11 Pro Max"
caps["platformName"] = "iOS"
caps["platformVersion"] = "13.3"
caps["udid"] = "CD7A3E92-9C32-4428-9765-CF99FE142233"
caps["automationName"] = "xcuitest"

driver = webdriver.Remote("http://localhost:4723/wd/hub", caps)

driver.get("https://www.baidu.com"
)

el2 = driver.find_element_by_xpath("//XCUIElementTypeOther[@name="百度一下"]/XCUIElementTypeOther[12]")
el2.click()

driver.quit()

 

以上是关于Appium_iOS测试脚本的主要内容,如果未能解决你的问题,请参考以下文章

常用python日期日志获取内容循环的代码片段

Jmeter组件之-Test Fragment(测试片段)

代码片段:Shell脚本实现重复执行和多进程

互动视频脚本 : 电子类的短视频

html 将以编程方式附加外部脚本文件的javascript代码片段,并按顺序排列。用于响应式网站,其中ma

如何在 Toad for Oracle 中使用自定义代码片段?