# get\_property

## Syntax

```python
Element.get_property(prop: str) -> Any
```

## Usage

{% code title="correct usage" %}

```python
py.get(".nav-link").get_property("innerHTML")
```

{% endcode %}

{% code title="incorrect usage" %}

```python
# Errors, 'py' cannot call this directly
py.get_property("className")
```

{% endcode %}

## Arguments

* <mark style="color:purple;">`property (str)`</mark> - The name of the property.

## Yields

* The value returned by the property, but this is usually a <mark style="color:yellow;">**string**</mark>.
