欢迎来到BlackTest-老王自动化测试

06 2018 档案

摘要:有时候项目中需要输入快递号,对于已输入过的快递单号则不能再次输入,这种问题怎么解决呢,可以看下这个方法 public static final String ALLCHAR = "0123456789"; /** * * <p>Title: SampleDeliverGoods.java</p> * 阅读全文
posted @ 2018-06-12 17:48 BlackTest 编辑
摘要:WebElement e1 = driver.findElement(By.cssSelector("#s_province")); Select se1 = new Select(e1); se1.selectByValue("11"); Thread.sleep(2000); WebElemen 阅读全文
posted @ 2018-06-12 17:39 BlackTest 编辑
摘要:Runtime exe = Runtime.getRuntime(); try{ String str = "D:\\Auto上传文件\\photo.exe"; exe.exec(str); //运行制定位置的exe文件 }catch(IOException e) { System.out.prin 阅读全文
posted @ 2018-06-12 17:35 BlackTest 编辑
摘要://高亮元素 WebElement element = driver.findElement(By.cssSelector(".table1 .btn-public label")); JavascriptExecutor js =(JavascriptExecutor)driver; js.exe 阅读全文
posted @ 2018-06-12 17:31 BlackTest 编辑

点击右上角即可分享
微信分享提示