Selenide智能等待

来源:互联网 发布:朗读软件手机版 编辑:程序博客网 时间:2024/06/08 03:20
一般情况下,Selenide会智能等待元素加载完成,以便继续完成其余步骤操作,
但由于不知道的原因,有时候貌似不能奏效,可尝试使用此方法

import static org.openqa.selenium.support.ui.ExpectedConditions.visibilityOfElementLocated;
Selenide.Wait().until(visibilityOfElementLocated(By.id("$ires")));

欢迎大家加入群 450515701 ,一起加入,一起交流讨论Selenide以及自动化相关知识
原创粉丝点击