> For the complete documentation index, see [llms.txt](https://docs.pylenium.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pylenium.io/driver-commands/browser/window_size.md).

# window\_size

## Syntax

```python
py.window_size -> Dict[str, int]
```

## Usage

{% code title="correct usage" %}

```python
size = py.window_size

# print the width
print(size["width"])

# print the height
print(size["height"]
```

{% endcode %}

## Arguments

* None

## Yields

* <mark style="color:orange;">**Dict\[str, int]**</mark> - The current window's size as a dictionary
