- 博客(11)
- 收藏
- 关注
原创 【Selenium WebDriver自动化测试实例】frame定位和Robot按键!
frame定位方法:(1)切入:driver.switchto().frame(String)String可以是frame的id,也可是name,frame自己挨个比对切出:driver.switchto().defaultContent();跳出当前的frame(2)driver.switchto().frame(0) ;索引定位例子:package WebDriverSuper...
2019-07-28 21:34:42
520
原创 【Selenium WebDriver自动化测试实例】自动下载文件!
package WebDriverSuper;import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.firefox.FirefoxDriver;import org.openqa.selenium.firefox.FirefoxProfile;import...
2019-07-22 22:12:51
963
1
原创 【Selenium WebDriver自动化测试实例】操作浏览器的Cookie!
package navigateBack;import java.util.Set;import org.openqa.selenium.WebDriver;import org.openqa.selenium.ie.InternetExplorerDriver;import org.testng.annotations.AfterClass;import org.testng.anno...
2019-07-15 21:57:26
304
原创 【Selenium WebDriver自动化测试实例】操作多个窗口句柄Handle!
package navigateBack;import java.util.List;//import org.openqa.selenium.Alert;import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.WebElement;import org....
2019-07-15 21:55:25
592
原创 【Selenium WebDriver自动化测试实例】操作单选下拉框和多选下拉框!
package navigateBack;import org.testng.annotations.Test;import org.testng.annotations.BeforeClass;import java.util.ArrayList;import java.util.Arrays;import java.util.List;//import org.apache.bce...
2019-07-14 22:24:56
479
原创 【Selenium WebDriver自动化测试实例】操作浏览器窗口!
package navigateBack;import org.testng.annotations.Test;import org.testng.annotations.BeforeClass;import org.openqa.selenium.Dimension;//import java.awt.Dimension;import org.openqa.selenium.Point...
2019-07-14 22:20:46
223
原创 【Selenium WebDriver自动化测试实例】返回上一个页面和前进到下一个页面!
package navigateBack;import org.testng.annotations.Test;import org.testng.annotations.BeforeClass;import java.sql.Driver;import org.openqa.selenium.WebDriver;import org.openqa.selenium.chrome.Chr...
2019-07-14 22:18:02
4094
原创 【Selenium WebDriver自动化测试实例】杀掉Windows进程!
package navigateBack;import org.testng.annotations.Test;import com.gargoylesoftware.htmlunit.javascript.host.dom.Text;//import com.sun.jna.platform.FileUtils;import org.testng.annotations.BeforeCl...
2019-07-11 22:09:29
489
原创 【Selenium WebDriver自动化测试实例】模拟键盘按键!
package navigateBack;//import java.awt.event.KeyEvent.VK_ALT;import java.awt.AWTException;import java.awt.Event;import java.awt.Robot;import org.openqa.selenium.By;import org.openqa.selenium.Key...
2019-07-11 22:07:03
405
原创 【Selenium WebDriver自动化测试实例】清除文本框内容!
**package navigateBack;import org.testng.annotations.Test;import org.testng.annotations.BeforeClass;import org.apache.http.util.Asserts;import org.openqa.selenium.By;import org.openqa.selenium.We...
2019-07-11 22:01:40
2333
原创 免费分享教程集合
C语言(计算机二级必过题库)链接:https://pan.baidu.com/s/1jqgKJaY37MlaE44pIP5RqQ提取码:dd7qVisual C++从入门到精通实战教程(10章)链接:https://pan.baidu.com/s/1coLJwyIwQJ2MkdPw8uRKBQ提取码:jfvm《C语言精讲》从入门到精通(14章)链接:https://pan.baidu...
2019-06-16 14:14:08
4459
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人