![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
selenium
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 评论 -
Selenium + Java系列二:常见元素定位问题
1.动态id定位不到元素 //WebElement xiexin_element = driver.findElement(By.id("_mail_component_82_82")); WebElement xiexin_element = driver.findElement(By.xpath("//span[contains(.,'写 信')]")); xiexin_element.click();分析:上面一段代码注释掉的部分为通过id定位element的,但是此id“原创 2020-08-03 21:56:25 · 403 阅读 · 1 评论 -
Selenium + Java系列一:断言
常见断言整理到以下工具类中:import org.slf4j.Logger;import org.slf4j.LoggerFactory;import static org.hamcrest.Matchers.*;import static org.junit.Assert.assertThat;import java.math.BigDecimal;import java.util.Map;public class AssertUtil { public static final Lo原创 2020-07-30 14:15:57 · 1873 阅读 · 0 评论