摘要:
阅读全文
摘要:
休眠 显示等待 隐式等待 含义 脚本在执行到某一位置时做固定时间的休眠。 等待某个条件成立时继续执行,否则在达到最大时长时抛出超时异常。 通过一定的时长等待页面上某元素加载完成。 Java Thread.sleep(时间) WebDriverWait wait = new WebDriverWait 阅读全文
摘要:
注意:只有满足显式等待要求,代码才会向后执行,当显式等待条件未满足时,在设定的最大显式等待时间区间内,会停在当前代码位置进行等待,直到设定的条件被满足,才能继续执行后续的测试逻辑。如果超过设定的最大显式等待时间区间,程序会抛出异常,测试用例被认为执行失败。package jkcs; import o 阅读全文
摘要:
package jkcs; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.NoSuchElementException; import java.util.concurrent.TimeU 阅读全文
摘要:
package jkcs; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa 阅读全文
摘要:
package com.test.key; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium 阅读全文
摘要:
package rjcs; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefo 阅读全文
摘要:
package com.test.mouse; import java.io.File; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElemen 阅读全文
摘要:
阅读全文
摘要:
package rjcs; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.List; import org.apache.commons.io.FileUtils; import org. 阅读全文
摘要:
package jkcs; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa 阅读全文
摘要:
package jkcs; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa 阅读全文
摘要:
package rjcs; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefo 阅读全文
摘要:
package rjcs; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.interactions.Actions; public class xinkaishi { public stati 阅读全文
摘要:
引入包:import org.openqa.selenium.Alert; js的alert弹框 Alert alert = driver.switchTo().alert(); //获取并创建alert对象 alert.getText(); //获取弹出框中的文字 alert.accept(); 阅读全文
摘要:
阅读全文