自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 461

原创 【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 900 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 259

原创 【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 526

原创 【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 427

原创 【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 179

原创 【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 3881

原创 【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 413

原创 【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 350

原创 【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 2245

原创 免费分享教程集合

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 3839

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除