For example button:near(:text("Username"), 120) matches a button that is at most 120 pixels away from the element with the text "Username". // Start waiting for file chooser before clicking. Returns whether the element is hidden, the opposite of visible. Quoted body follows the usual escaping rules, e.g. React selectors are experimental and prefixed with _. 2. If the role or text value is important to you then consider using user facing locators such as role and text locators. If the target element is not an ,