随笔分类 -  java+selenium+new(webUI自动化)

摘要: 阅读全文
posted @ 2020-04-28 18:57 小白龙白龙马
摘要:package rjcs; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.*; import java.awt.*; import java.awt.datatransfer.Stri 阅读全文
posted @ 2020-04-28 17:55 小白龙白龙马
摘要:package jkcs; import java.io.File; import java.io.IOException; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; 阅读全文
posted @ 2020-04-28 16:37 小白龙白龙马
摘要:package jkcs; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import org.openqa.selenium.WebDriver; import org. 阅读全文
posted @ 2020-04-28 15:07 小白龙白龙马
摘要:package jkcs; import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.se 阅读全文
posted @ 2020-04-24 18:34 小白龙白龙马
摘要:package jkcs; import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.se 阅读全文
posted @ 2020-04-24 18:02 小白龙白龙马
摘要:package jkcs; import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.se 阅读全文
posted @ 2020-04-24 17:50 小白龙白龙马
摘要:package jkcs; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; p 阅读全文
posted @ 2020-04-24 16:30 小白龙白龙马
摘要:package jkcs; import java.util.Set; import org.openqa.selenium.Cookie; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.Firefo 阅读全文
posted @ 2020-04-24 16:12 小白龙白龙马
摘要:休眠 显示等待 隐式等待 含义 脚本在执行到某一位置时做固定时间的休眠。 等待某个条件成立时继续执行,否则在达到最大时长时抛出超时异常。 通过一定的时长等待页面上某元素加载完成。 Java Thread.sleep(时间) WebDriverWait wait = new WebDriverWait 阅读全文
posted @ 2020-04-22 15:02 小白龙白龙马
摘要:注意:只有满足显式等待要求,代码才会向后执行,当显式等待条件未满足时,在设定的最大显式等待时间区间内,会停在当前代码位置进行等待,直到设定的条件被满足,才能继续执行后续的测试逻辑。如果超过设定的最大显式等待时间区间,程序会抛出异常,测试用例被认为执行失败。package jkcs; import o 阅读全文
posted @ 2020-04-22 15:01 小白龙白龙马
摘要:package jkcs; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.NoSuchElementException; import java.util.concurrent.TimeU 阅读全文
posted @ 2020-04-22 12:47 小白龙白龙马
摘要:package jkcs; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa 阅读全文
posted @ 2020-04-22 12:31 小白龙白龙马
摘要:package com.test.key; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium 阅读全文
posted @ 2020-04-22 12:23 小白龙白龙马
摘要:package rjcs; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefo 阅读全文
posted @ 2020-04-22 12:19 小白龙白龙马
摘要:package com.test.mouse; import java.io.File; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElemen 阅读全文
posted @ 2020-04-22 12:10 小白龙白龙马
摘要:package rjcs; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.List; import org.apache.commons.io.FileUtils; import org. 阅读全文
posted @ 2020-04-22 11:53 小白龙白龙马