selenium
文章平均质量分 60
aq2697013700
软件测试
展开
-
selenium访问谷歌浏览器
1.前提chromedriver要与谷歌浏览器版本相对应 2.在selenium文件夹下新建selenium-server-standalone-2.53.0.bat, selenium-server-standalone-2.53.0.bat以txt类型打开编写 java -jar selenium-server-standalone-2.53.0.jar 3.每次使用selenium需翻译 2017-11-29 22:17:40 · 391 阅读 · 0 评论 -
selenium测试单选多选按钮
一、单选按钮 html代码: body> form> input type="radio" value="aaaaa" name="aaaaaa">aaaaa input type="radio" value="bbbbb" name="aaaaaa"/>sssss form> body> java代码: @Test public void test() { We翻译 2017-11-30 22:29:32 · 492 阅读 · 0 评论 -
selenum在指定元素上进行鼠标单击左键和释放的操作
html代码: <!DOCTYPE html> html lang="en"> head> meta charset="UTF-8"> title>Titletitle> head> script> function mouseDownFun(){ document.getElementById('div1').innerHTML+='鼠标左键被按下'; } func翻译 2017-12-10 21:39:40 · 312 阅读 · 0 评论 -
selenium在指定元素上方进行鼠标悬浮
html代码: <!DOCTYPE html> html lang="en"> head> meta charset="UTF-8"> title>Titletitle> head> script language="JavaScript"> function showNone(){ document.getElementById('div1').style.displ翻译 2017-12-10 21:41:47 · 3412 阅读 · 1 评论 -
selenium访问下拉列表
一、单选下拉列表 1.html代码 <!DOCTYPE html> html lang="en"> head> meta charset="UTF-8"> title>Titletitle> head> body> select name="sel" size=1> option value="A" id="1">Aoption> option value="转载 2017-12-05 18:05:39 · 349 阅读 · 0 评论 -
手动编写bat,启动selenium server
1.在selenium文件夹下新建txt类型的文本文档,打开编写 java -jar selenium-server-standalone-2.53.0.jar, 把txt类型修改为bat类型重命名为selenium-server-standalone-2.53.0.bat, 2.每次使用selenium需点击selenium-server-standalone-2.53.0.bat启动s转载 2017-11-27 13:45:13 · 537 阅读 · 0 评论