It has problem with the web component <xxx-base-v0-loader> being hidden (through the "advanced" CSS above), but the ID of the element waiting to be hidden is a child element. Regardless of the visibility state of the element, click is dispatched. Can anyone know how to make it work? For example, input matches all the inputs on the page, while input:visible and input >> visible=true only match visible inputs. Selectors are strings that are used to create Locators. So maybe . If you'll get any luck with providing a repro, please ping me and I'll reopen and investigate. This will find the first button, because it is the first one in DOM order. console.log(" header" + header) const base = this.within(header).getByText("LINEHOLDER") Selectors defined as engine=body or in short-form can be combined with the >> token, e.g. This environment has access to the same DOM, but not any JavaScript objects from the frame's scripts. For interactive elements like button, a, input, etc. Masked elements will be overlaid with a pink box #FF00FF that completely covers its bounding box. Inputs may have a placeholder attribute to hint to the user what value should be entered. const check = this.within(header).getByText("check") Well occasionally send you account related emails. It requires bumping browser revision and so far we've been following the policy of updating browser version only during minor releases (not patch releases). By Diogo Nunes. The :is() pseudo-class is an experimental CSS pseudo-class. Unlike CSS's nth-match, provided index is 0-based. state "visible"|"hidden"|"stable"|"enabled"|"disabled"|"editable"#. Locators support an option to only select elements that have a descendant matching another locator. It does not search inside closed shadow roots or iframes. If the element is already unchecked, this method returns immediately. You can assert locators in order to count the items in a list. value Locator@query-by-test-id=["erow-GroupCode-0"] >> get-by-text=["check"] Returns the content frame for element handles referencing iframe nodes, or null otherwise. To learn more, see our tips on writing great answers. Useful to wait until the element is ready for the action without performing it. For example, text="Log" does not match because