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 后仍然找不到所需的元素时,通常会发生这种情况。如何检查定位器是否正确?
我通常会在元素上放置一个调试点,看看是否可以找到该元素。或者,如果您不想调试,我在元素之前放置了 2 秒的睡眠时间,只是为了测试。如果该元素可见,我知道我可以在该元素上放置一个 waitUntil 并且它将起作用。