Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想了解如何使用 selenide / selenium 中的窗口标题文本让服务员进行断言
像这样的东西:
waitUntil(assertion.true(Selenide.title().toLowerCase().startsWith("text")), timeout);
你能帮我吗?
像这样解决:
{ ... await().atMost(timeOut, SECONDS).until(assertionWaitForTitle("text")); } private Callable<Boolean> assertionWaitForTitle(String start) { return () -> Selenide.title().toLowerCase().startsWith(start); }