上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 63 下一页
该文被密码保护。 阅读全文
posted @ 2019-05-14 12:42 李清欣 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-05-14 12:39 李清欣 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-05-14 12:38 李清欣 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-05-12 15:51 李清欣 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 随便给你一个含有数字的字符串,比如: String s="eert343dfg56756dtry66fggg89dfgf"; 那我们如何把其中的数字提取出来呢?大致有以下几种方法,正则表达式,集合类,还有就是String类提供的方法。 1 String类提供的方法: package 测试练习; import java.util.*; public class get_StringNum... 阅读全文
posted @ 2019-05-06 22:52 李清欣 阅读(7114) 评论(0) 推荐(0) 编辑
摘要: driver.executeScript(‘document.getElementById(“id”).value=“value”’); 这个操作就类似于//$("#id").val(“value”); 阅读全文
posted @ 2019-05-06 22:50 李清欣 阅读(4187) 评论(0) 推荐(0) 编辑
摘要: 做自动测试时,经常会出现某些文本框带有默认值的形式,此时我们为了输入我们预期的数据,就需要我们对默认值清楚后做处理。本文章提供四种方法 //方法1 public static void setElementValue(WebElement element,String value){ element.sendKeys(Keys.chord(Keys.CONTROL, "a")... 阅读全文
posted @ 2019-05-06 22:49 李清欣 阅读(3229) 评论(0) 推荐(0) 编辑
摘要: 方法一:获取input的文本值 <input class="form-text-normal" id="txtName" name="Name" type="text" maxlength="45" >星河学院</input> chrome.findElement( By.id("txtName") 阅读全文
posted @ 2019-05-06 22:46 李清欣 阅读(3019) 评论(0) 推荐(0) 编辑
摘要: 最近一直在学Selenium相关东西,学到webdriver这块,出现报不可见元素异常方法异常,后来网上找了好多相关资料都没搞定,也没看明白,最后发现是xpath中写了calss属性有问题。现在把学习到的方法和实际解决的方法总结一下,留个记号。 1. 关于存在不可见属性的元素,对元素操作时,出现报如 阅读全文
posted @ 2019-05-06 22:33 李清欣 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 一、git 解决fatal: Not a git repository 我用git add file添加文件时出现这样错误: fatal: Not a git repository (or any of the parent directories): .git 提示说没有.git这样一个目录,解决 阅读全文
posted @ 2019-04-26 18:54 李清欣 阅读(5472) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 63 下一页