test1000
来源:互联网 发布:淘宝出售可非大力小泰 编辑:程序博客网 时间:2024/06/05 14:39
package Ccwp;
import org.openqa.selenium.By;
//import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriver.Navigation;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class test1000 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver","E:\\autotest\\chromedriver_win3224\\chromedriver.exe");
//System.setProperty("webdriver.chrome.driver","E:\\GoogleChrome39/GoogleChrome39/GoogleChromePortable.exe");
WebDriver driver1=new ChromeDriver();
// JavascriptExecutor jse=(JavascriptExecutor) driver1;
Navigation navigation1=driver1.navigate();
//navigation1.to("http://ccwp.sit.sf-express.com/service/setLogin?openId=BCED0272E8303D139EE9879BDAA56B72&phone=13692212840&channel=3");
try{Thread.sleep(4000);
}catch(InterruptedException e){e.printStackTrace();}
navigation1.to("http://ccwp.sit.sf-express.com/page/tencent/index.html");
WebElement jijian=driver1.findElement(By.xpath("//*[@id='wrapper']/section[1]/ul/li[2]/a/h3"));
jijian.click();
try{Thread.sleep(4000);
}catch(InterruptedException e){e.printStackTrace();}
for(int i=1;i<=1000;i++)
{ driver1.navigate().refresh();
try{Thread.sleep(1000);
}catch(InterruptedException e){e.printStackTrace();}
}
}
}
import org.openqa.selenium.By;
//import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriver.Navigation;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class test1000 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver","E:\\autotest\\chromedriver_win3224\\chromedriver.exe");
//System.setProperty("webdriver.chrome.driver","E:\\GoogleChrome39/GoogleChrome39/GoogleChromePortable.exe");
WebDriver driver1=new ChromeDriver();
// JavascriptExecutor jse=(JavascriptExecutor) driver1;
Navigation navigation1=driver1.navigate();
//navigation1.to("http://ccwp.sit.sf-express.com/service/setLogin?openId=BCED0272E8303D139EE9879BDAA56B72&phone=13692212840&channel=3");
try{Thread.sleep(4000);
}catch(InterruptedException e){e.printStackTrace();}
navigation1.to("http://ccwp.sit.sf-express.com/page/tencent/index.html");
WebElement jijian=driver1.findElement(By.xpath("//*[@id='wrapper']/section[1]/ul/li[2]/a/h3"));
jijian.click();
try{Thread.sleep(4000);
}catch(InterruptedException e){e.printStackTrace();}
for(int i=1;i<=1000;i++)
{ driver1.navigate().refresh();
try{Thread.sleep(1000);
}catch(InterruptedException e){e.printStackTrace();}
}
}
}
0 0
- test1000
- MySQLWorkbench 双击无反应
- 一个App完成入门篇(三)-完善主框架 企
- 在Android应用中读取彩信文件
- Windows 和Linux利用tftp协议传送文件
- Android ListView获取当前可视区域条目数据
- test1000
- 《python计算机视觉编程》读书笔记------5(Numpy篇)
- C++构造函数和拷贝构造函数等的使用
- Linux 字符串整数比较大小,-w,-d,-L等命令,
- 网易公开课 斯坦福大学公开课:机器学习课程 notes2
- PHP 魔术变量
- servJump extends HttpServlet //request.getRequestDispatcher //response.sendRedirect("http
- :link,:visited,:focus,:hover,:active详解
- win10在几个窗口间切换的快捷键