class Playwright::Page
def get_by_label(text, exact: nil)
page.get_by_label("Password").fill("secret")
page.get_by_label("Username").fill("john")
```python sync
```
```html
For example, this method will find inputs by label "Username" and "Password" in the following DOM:
**Usage**
Allows locating input elements by the text of the associated `
def get_by_label(text, exact: nil) wrap_impl(@impl.get_by_label(unwrap_impl(text), exact: unwrap_impl(exact))) end