![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
文章平均质量分 87
ringytt
这个作者很懒,什么都没留下…
展开
-
Selenium + Java系列三:常见报错
报错一、Timed out receiving message from renderer解决方案:该问题可以pageLoadTimeout来解决 加载策略不要设置为none报错二、org.openqa.selenium.ElementNotInteractableException解决方案:It could be because of two reasons.Your button element is visible but not yet clickable. If that is th原创 2020-09-25 17:35:14 · 1792 阅读 · 0 评论 -
java:判断当前操作系统类型
一、操作系统的枚举public enum OsType { Linux("Linux"), Mac_OS("Mac OS"), Mac_OS_X("Mac OS X"), Windows("Windows"); private OsType(String desc) { this.description = desc; } public String toString() { return description; } private String description;}原创 2020-08-24 10:44:14 · 2688 阅读 · 0 评论 -
RandomStringUtils生成随机数相关方法
import org.apache.commons.lang3.RandomStringUtils;public class RandomUtil { /** * count 创建一个随机字符串,其长度是指定的字符数,字符将从参数的字母数字字符集中选择,如参数所示。 * letterstrue,生成的字符串可以包括字母字符 * numbers true,生成的字符串可以包含数字字符 */ public static String random(int count, boolea原创 2020-08-24 10:32:04 · 602 阅读 · 0 评论