#深入理解Java函数式编程

Self_Java + Selenium + Maven 环境搭建步骤

转自:http://www.jianshu.com/p/3c05e8c9ee81我们使用Java+SeleniumWebDriver来进行环境的搭建,同样分为两个部分:安装Java和intellijIDEA引入指定Selenium的Maven使用的pom.xml文件Maven是一个用于项目构建的工具,通过它便捷的管理项...

selenium测试(Java)--下拉框(二十一)

例子:<!DOCTYPEhtml><html><head><metacharset="UTF-8"><title>calc</title><script>functioncalcResult(){varnum1=document.get...

selenium测试(Java)--关闭窗口(二十)

quit方法:退出相关的驱动程序和关闭所有窗口close方法:关闭当前窗口packagecom.test.closewindow;importjava.util.Iterator;importjava.util.Set;importorg.openqa.selenium.By;importorg.openqa.sele...

selenium测试(Java)--截图(十九)

packagecom.test.screenshot;importjava.io.File;importjava.io.IOException;importorg.apache.commons.io.FileUtils;importorg.openqa.selenium.OutputType;importorg.ope...

selenium测试(Java)--执行JS(十八)

1. 操作滚动条packagecom.test.js;importorg.openqa.selenium.By;importorg.openqa.selenium.Dimension;importorg.openqa.selenium.JavascriptExecutor;importorg.openqa.s...

selenium测试(Java)--操作cookie(十七)

packagecom.test.cookies;importorg.openqa.selenium.Cookie;importorg.openqa.selenium.JavascriptExecutor;importorg.openqa.selenium.WebDriver;importorg.openqa.selen...

selenium测试(Java)--下载文件(十六)

下载文件需要在Firefox的profile属性中配置一些参数,如下面的代码:packagecom.test.download;importjava.io.File;importorg.openqa.selenium.By;importorg.openqa.selenium.JavascriptExecutor;imp...

selenium测试(Java)--上传文件(十五)

1.当页面中是通过input标签实现上传功能时,可以使用selenium来上传功能。如下:packagecom.test.upload;importjava.io.File;importorg.openqa.selenium.By;importorg.openqa.selenium.WebDriver;importor...

selenium测试(Java)--告警框处理(十四)

下面代码中介绍了告警框的处理方法packagecom.test.alerthandle;importorg.openqa.selenium.By;importorg.openqa.selenium.JavascriptExecutor;importorg.openqa.selenium.TimeoutException...

selenium测试(Java)--多窗口切换(十三)

如果遇到点击按钮或链接后出现新窗口的情况,就需要使用窗口切换的方法。 本例中就是先打开百度搜索界面,然后利用js打开一个百度新闻界面,然后通过selenium提供的窗口切换方法切换窗口packagecom.test.windows;importjava.util.Iterator;importjava.uti...

selenium测试(Java)--多表单切换(十二)

采用下面的例子来编写用例<!DOCTYPEhtml><html><head><metahttp-equiv="content-type"content="text/html;charset=utf-8"/><title>frameswitch</titl...

selenium测试(Java)-- 一组元素操作(十一)

利用下面的例子来编写测试脚本页面代码:<!DOCTYPEhtml><html><head><metahttp-equiv="content-type"content="text/html;charset=UTF-8"/><title>CheckBox</...

selenium测试(Java)-- 隐式等待(十)

隐式等待相当于设置全局的等待,在定位元素时,对所有元素设置超时时间。隐式等待使得WebDriver在查找一个Element或者Element数组时,每隔一段特定的时间就会轮询一次DOM,如果Element或数组没有马上被发现的话。默认设置是0。一旦设置,这个隐式等待会在WebDriver对象实例的整个生命周期起作用。一...
首页上一页...1516171819...下一页尾页