selenium 自动化测试
webdriver 浏览器驱动 firefox
profileIni 配置
FirefoxProfile default在浏览器中设置好后默认调用
Navigation 导航
.to(url) 定位网址
Webelement 元素
findelement(By....) 通过什么查找class、css、linktext、Xpath
sendkeys 输入文本框
submit 提交
switchto.frame 指定frame,无法定位元素时考虑定位frame
webdriverwait 等待。。。
waituntil 直到。。。完成
e.getAttribute(" ") 元素属性
actions 键盘操作
Keys.Arrow_RIGHT 右箭头
close 关闭窗口
quit 安全退出,关闭Windows与session
webdriver 浏览器驱动 firefox
profileIni 配置
FirefoxProfile default在浏览器中设置好后默认调用
Navigation 导航
.to(url) 定位网址
Webelement 元素
findelement(By....) 通过什么查找class、css、linktext、Xpath
sendkeys 输入文本框
submit 提交
switchto.frame 指定frame,无法定位元素时考虑定位frame
webdriverwait 等待。。。
waituntil 直到。。。完成
e.getAttribute(" ") 元素属性
actions 键盘操作
Keys.Arrow_RIGHT 右箭头
close 关闭窗口
quit 安全退出,关闭Windows与session