Overview
Inspection commands allow you to extract information from elements and check their state.Get Element Information
get text
Get text content of an element.| Parameter | Description |
|---|---|
selector | Element selector |
get html
Get innerHTML of an element.| Parameter | Description |
|---|---|
selector | Element selector |
get value
Get value of an input element.| Parameter | Description |
|---|---|
selector | Input element selector |
get attr
Get attribute value of an element.| Parameter | Description |
|---|---|
selector | Element selector |
attribute | Attribute name |
get title
Get page title. Examples:get url
Get current page URL. Examples:get count
Count matching elements.| Parameter | Description |
|---|---|
selector | Element selector |
get box
Get bounding box of an element.| Parameter | Description |
|---|---|
selector | Element selector |
get styles
Get computed styles of an element.| Parameter | Description |
|---|---|
selector | Element selector |
Check Element State
is visible
Check if element is visible.| Parameter | Description |
|---|---|
selector | Element selector |
is enabled
Check if element is enabled.| Parameter | Description |
|---|---|
selector | Element selector |
is checked
Check if checkbox or radio is checked.| Parameter | Description |
|---|---|
selector | Checkbox/radio selector |