上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: document.readyState:判断文档是否加载完成。firefox不支持。 这个属性是只读的,传回值有以下的可能: 0-UNINITIALIZED:XML 对象被产生,但没有任何文件被加载。1-LOADING:加载程序进行中,但文件尚未开始解析。2-LOADED:部分的文件已经加载且进行解 阅读全文
posted @ 2017-12-04 16:56 Sunny* 阅读(2312) 评论(0) 推荐(0)
摘要: //移动到元素element对象的“顶端”与当前窗口的“顶部”对齐 ((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView();", element); ((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true... 阅读全文
posted @ 2017-11-16 20:58 Sunny* 阅读(3258) 评论(0) 推荐(1)
摘要: TestNG套件测试 测试套件的测试是为了测试软件程序的行为或一系列行为的情况下,是一个集合。在TestNG,我们不能定义一套测试源代码,但它代表的套件是一个XML文件执行特征。这也允许灵活的配置要运行的测试。套件可以包含一个或多个测试和被定义由<suite>标签。 testng.xml中有<sui 阅读全文
posted @ 2017-11-16 20:53 Sunny* 阅读(308) 评论(0) 推荐(0)
摘要: 用Testng运行多个class,结果报: org.testng.TestNGException: Cannot find class in classpath: Salesman at org.testng.xml.XmlClass.loadClass(XmlClass.java:81) at o 阅读全文
posted @ 2017-11-16 20:35 Sunny* 阅读(3381) 评论(0) 推荐(0)
摘要: 1.实现方式 2.运行结果 阅读全文
posted @ 2017-11-10 16:12 Sunny* 阅读(4402) 评论(0) 推荐(0)
摘要: 1.修改前代码块 控制台输出结果: ”[语文, 100,英语, 90,数学, 90]” 2.修改后代码块 控制台输出的结果为: [语文, 100] [英语, 90] [数学, 90] 阅读全文
posted @ 2017-11-10 16:07 Sunny* 阅读(5094) 评论(0) 推荐(0)
摘要: 1.http://www.testclass.net/selenium_java/# testclass网址 2.http://www.yiibai.com/selenium/selenium_ide.html yiibai网址 阅读全文
posted @ 2017-11-06 18:03 Sunny* 阅读(264) 评论(0) 推荐(1)
摘要: 基础普及 alert对话框 。细分三种,Alert,prompt,confirm1. alert() 弹出个提示框 (确定) 警告消息框 alert 方法有一个参数,即希望对用户显示的文本字符串。该字符串不是 HTML 格式。该消息框提供了一个“确定”按钮让用户关闭该消息框,并且该消息框是模式对话框 阅读全文
posted @ 2017-11-06 17:55 Sunny* 阅读(10042) 评论(0) 推荐(0)
摘要: HSSF方式: XSSF方式: 阅读全文
posted @ 2017-11-06 17:32 Sunny* 阅读(17858) 评论(0) 推荐(1)
摘要: 1.getPhysicalNumberOfCells 与 getLastCellNum的区别 用org.apache.poi的包做excel导入,无意间发明若是excel文件中有空列,空列后面的数据全部读不到。查来查去本来是HSSFRow供给两个办法:getPhysicalNumberOfCells 阅读全文
posted @ 2017-11-06 10:26 Sunny* 阅读(2469) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页