Java自动化测试(App特殊元素定位 34)
手势操作-滑动
滑动操作 = 点击屏幕某一点 + 移动 + 松开
github:https://github.com/appium/appium
Appium is an open source test automation framework for use with native, hybrid and mobile web apps.
It drives iOS, Android, and Windows apps using the WebDriver protocol.
第三方自动化工具,扩充了Selenium WebDriver协议,在原有的基础上添加了移动端测试API
是一个开源的,跨平台的自动化测试工具,可以用于app的自动化测试
支持android,ios,firefox os等操作系统下的app测试
1 | driver.get("https://www.fliggy.com/?ttid=seo.000000574&seoType=origin"); |

在html中有readonly的时间控件
import org.openqa.selenium.support.ui.Select;Select对象getOptions拿到全部选项内容selectByIndex或者selectByValue或者selectByVisibleText分别以index,value,text来选择1 | WebElement selectElement = driver.findElement(By.id("modules")); |