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.
前几天我了解到,如果 Selenium 是 CSS 选择器并且包含:visible. 这对我来说是一个缺点。我怎样才能解决这个问题?
:visible
在Katalon Studio中,您可以执行 JavaScript(在本例中为 jQuery)。
例如,以下内容会将<a>包含的所有元素涂成黄色:visible:
<a>
WebUI.executeJavaScript('return $("a:visible").css("backgroundColor", "yellow")', [])