摘要:
阅读全文
posted @ 2020-04-22 15:40
小白龙白龙马
阅读(211)
评论(0)
推荐(0)
摘要:
休眠 显示等待 隐式等待 含义 脚本在执行到某一位置时做固定时间的休眠。 等待某个条件成立时继续执行,否则在达到最大时长时抛出超时异常。 通过一定的时长等待页面上某元素加载完成。 Java Thread.sleep(时间) WebDriverWait wait = new WebDriverWait 阅读全文
posted @ 2020-04-22 15:02
小白龙白龙马
阅读(818)
评论(0)
推荐(0)
摘要:
注意:只有满足显式等待要求,代码才会向后执行,当显式等待条件未满足时,在设定的最大显式等待时间区间内,会停在当前代码位置进行等待,直到设定的条件被满足,才能继续执行后续的测试逻辑。如果超过设定的最大显式等待时间区间,程序会抛出异常,测试用例被认为执行失败。package jkcs; import o 阅读全文
posted @ 2020-04-22 15:01
小白龙白龙马
阅读(329)
评论(0)
推荐(0)
摘要:
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
小白龙白龙马
阅读(1518)
评论(0)
推荐(0)
摘要:
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
小白龙白龙马
阅读(1029)
评论(0)
推荐(0)
摘要:
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
小白龙白龙马
阅读(330)
评论(0)
推荐(0)
摘要:
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
小白龙白龙马
阅读(261)
评论(0)
推荐(0)
摘要:
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
小白龙白龙马
阅读(240)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-04-22 12:09
小白龙白龙马
阅读(268)
评论(0)
推荐(0)
摘要:
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
小白龙白龙马
阅读(407)
评论(0)
推荐(0)
摘要:
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 11:37
小白龙白龙马
阅读(340)
评论(0)
推荐(0)
摘要:
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 11:23
小白龙白龙马
阅读(370)
评论(0)
推荐(0)
摘要:
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 11:11
小白龙白龙马
阅读(325)
评论(0)
推荐(0)
摘要:
package rjcs; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.interactions.Actions; public class xinkaishi { public stati 阅读全文
posted @ 2020-04-22 11:10
小白龙白龙马
阅读(279)
评论(0)
推荐(0)
摘要:
引入包:import org.openqa.selenium.Alert; js的alert弹框 Alert alert = driver.switchTo().alert(); //获取并创建alert对象 alert.getText(); //获取弹出框中的文字 alert.accept(); 阅读全文
posted @ 2020-04-22 10:36
小白龙白龙马
阅读(221)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-04-22 10:30
小白龙白龙马
阅读(202)
评论(0)
推荐(0)