class Playwright::Browser

def contexts

```
print(len(browser.contexts())) # prints `1`
context = browser.new_context()
print(len(browser.contexts())) # prints `0`
browser = pw.webkit.launch()
```python sync

**Usage**

Returns an array of all open browser contexts. In a newly created browser, this will return zero browser contexts.
def contexts
  wrap_impl(@impl.contexts)
end