class Playwright::Page

def get_by_title(text, exact: nil)

```
expect(page.get_by_title("Issues count")).to_have_text("25 issues")
```python sync

You can check the issues count after locating it by the title text:

```
25 issues
```html

Consider the following DOM structure.

**Usage**

Allows locating elements by their title attribute.
def get_by_title(text, exact: nil)
  wrap_impl(@impl.get_by_title(unwrap_impl(text), exact: unwrap_impl(exact)))
end