摘要: 鼠标操作: 1.右击 2.双击 3.拖到 4.悬停 注:perform()的作用是 执行所有Actions中存储的行为。 阅读全文
posted @ 2016-07-11 23:44 月色深潭 阅读(8606) 评论(0) 推荐(0) 编辑
摘要: 1 package com.java.test; 2 3 import java.text.SimpleDateFormat; 4 import java.util.Calendar; 5 6 public class TimeS { 7 8 public static void main(Stri 阅读全文
posted @ 2016-07-11 17:13 月色深潭 阅读(40725) 评论(0) 推荐(0) 编辑
摘要: 使用默认方式构建的(WebDriver)FirefoxDriver实例: WebDriver driver = new FirefoxDriver(); 这种方式下,打开的Firefox浏览器将是不带任何插件的浏览器,和初始安装一样的状态。有时在测试中需要使用到预先保留的一些信息,比如Cookie中 阅读全文
posted @ 2016-07-11 08:26 月色深潭 阅读(9604) 评论(1) 推荐(0) 编辑