51
Dev开发社区
首页
文章
问答
工具
搜索
登录
注册
#深入理解Java函数式编程
Self_Java + Selenium + Maven 环境搭建步骤
转自:http://www.jianshu.com/p/3c05e8c9ee81我们使用Java+SeleniumWebDriver来进行环境的搭建,同样分为两个部分:安装Java和intellijIDEA引入指定Selenium的Maven使用的pom.xml文件Maven是一个用于项目构建的工具,通过它便捷的管理项...
代码星球
·
2021-02-23
Self
Java
Selenium
Maven
环境
selenium测试(Java)--学习总结
...
代码星球
·
2021-02-23
selenium
测试
Java
学习
总结
selenium测试(Java)--下拉框(二十一)
例子:<!DOCTYPEhtml><html><head><metacharset="UTF-8"><title>calc</title><script>functioncalcResult(){varnum1=document.get...
代码星球
·
2021-02-23
selenium
测试
Java
下拉
二十一
selenium测试(Java)--关闭窗口(二十)
quit方法:退出相关的驱动程序和关闭所有窗口close方法:关闭当前窗口packagecom.test.closewindow;importjava.util.Iterator;importjava.util.Set;importorg.openqa.selenium.By;importorg.openqa.sele...
代码星球
·
2021-02-23
selenium
测试
Java
关闭
窗口
selenium测试(Java)--截图(十九)
packagecom.test.screenshot;importjava.io.File;importjava.io.IOException;importorg.apache.commons.io.FileUtils;importorg.openqa.selenium.OutputType;importorg.ope...
代码星球
·
2021-02-23
selenium
测试
Java
--截图
十九
selenium测试(Java)--执行JS(十八)
1. 操作滚动条packagecom.test.js;importorg.openqa.selenium.By;importorg.openqa.selenium.Dimension;importorg.openqa.selenium.JavascriptExecutor;importorg.openqa.s...
代码星球
·
2021-02-23
selenium
测试
Java
执行
JS
selenium测试(Java)--操作cookie(十七)
packagecom.test.cookies;importorg.openqa.selenium.Cookie;importorg.openqa.selenium.JavascriptExecutor;importorg.openqa.selenium.WebDriver;importorg.openqa.selen...
代码星球
·
2021-02-23
selenium
测试
Java
操作
COOKIE
selenium测试(Java)--下载文件(十六)
下载文件需要在Firefox的profile属性中配置一些参数,如下面的代码:packagecom.test.download;importjava.io.File;importorg.openqa.selenium.By;importorg.openqa.selenium.JavascriptExecutor;imp...
代码星球
·
2021-02-23
selenium
测试
Java
下载
文件
selenium测试(Java)--上传文件(十五)
1.当页面中是通过input标签实现上传功能时,可以使用selenium来上传功能。如下:packagecom.test.upload;importjava.io.File;importorg.openqa.selenium.By;importorg.openqa.selenium.WebDriver;importor...
代码星球
·
2021-02-23
selenium
测试
Java
上传
文件
selenium测试(Java)--告警框处理(十四)
下面代码中介绍了告警框的处理方法packagecom.test.alerthandle;importorg.openqa.selenium.By;importorg.openqa.selenium.JavascriptExecutor;importorg.openqa.selenium.TimeoutException...
代码星球
·
2021-02-23
selenium
测试
Java
告警
处理
selenium测试(Java)--多窗口切换(十三)
如果遇到点击按钮或链接后出现新窗口的情况,就需要使用窗口切换的方法。 本例中就是先打开百度搜索界面,然后利用js打开一个百度新闻界面,然后通过selenium提供的窗口切换方法切换窗口packagecom.test.windows;importjava.util.Iterator;importjava.uti...
代码星球
·
2021-02-23
selenium
测试
Java
窗口
切换
selenium测试(Java)--多表单切换(十二)
采用下面的例子来编写用例<!DOCTYPEhtml><html><head><metahttp-equiv="content-type"content="text/html;charset=utf-8"/><title>frameswitch</titl...
代码星球
·
2021-02-23
selenium
测试
Java
表单
切换
selenium测试(Java)-- 一组元素操作(十一)
利用下面的例子来编写测试脚本页面代码:<!DOCTYPEhtml><html><head><metahttp-equiv="content-type"content="text/html;charset=UTF-8"/><title>CheckBox</...
代码星球
·
2021-02-23
selenium
测试
Java
一组
元素
selenium测试(Java)-- 隐式等待(十)
隐式等待相当于设置全局的等待,在定位元素时,对所有元素设置超时时间。隐式等待使得WebDriver在查找一个Element或者Element数组时,每隔一段特定的时间就会轮询一次DOM,如果Element或数组没有马上被发现的话。默认设置是0。一旦设置,这个隐式等待会在WebDriver对象实例的整个生命周期起作用。一...
代码星球
·
2021-02-23
selenium
测试
Java
隐式
等待
21. Java8新特性_重复注解与类型注解
...
代码星球
·
2021-02-23
注解
Java8
新特性
特性
重复
首页
上一页
...
15
16
17
18
19
...
下一页
尾页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他