macOS WebDriver Commands for Safari 12 and later
Test your web content using the WebDriver commands supported by Safari 12 and later.
Overview
This table lists the method and the URI template (the endpoint) that executes each command. The macOS WebDriver Commands for Safari 11.1 and earlier support the Selenium JSON Wire Protocol. The macOS WebDriver Commands for Safari 12 and later support the the W3C WebDriver protocol.
All URI templates listed here are supported by the safaridriver tool included with Safari 12 and later. For more information on the tool, see About WebDriver for Safari.
Method | URI template | Supported | Safari Technology Preview release, Safari version |
|---|
POST | #dfn Creating A New Session | ✓ | #r60, Whats New |
DELETE | #dfn Delete Session | ✓ | #r60, Whats New |
GET | #dfn Status | ✓ | #r60, Whats New |
GET | #dfn Get Timeouts | ✓ | #r60, Whats New |
POST | #dfn Timeouts | ✓ | #r60, Whats New |
POST | #dfn Navigate To | ✓ | #r60, Whats New |
GET | #dfn Get Current Url | ✓ | #r60, Whats New |
POST | #dfn Back | ✓ | #r60, Whats New |
POST | #dfn Forward | ✓ | #r60, Whats New |
POST | #dfn Refresh | ✓ | #r60, Whats New |
GET | #dfn Get Title | ✓ | #r60, Whats New |
GET | #dfn Get Window Handle | ✓ | #r60, Whats New |
DELETE | #dfn Close Window | ✓ | #r60, Whats New |
POST | #dfn Switch To Window | ✓ | #r60, Whats New |
GET | #dfn Get Window Handles | ✓ | #r60, Whats New |
POST | #dfn Switch To Frame | ✓ | #r60, Whats New |
POST | #dfn Switch To Parent Frame | ✓ | #r60, Whats New |
GET | #dfn Get Window Rect | ✓ | #r60, Whats New |
POST | #dfn Set Window Rect | ✓ | #r60, Whats New |
POST | #dfn Maximize Window | ✓ | #r60, Whats New |
POST | #dfn Minimize Window | ✓ | #r60, Whats New |
POST | #dfn Fullscreen Window | ✓ | #r60, Whats New |
GET | #dfn Get Active Element | ✓ | #r60, Whats New |
POST | #dfn Find Element | ✓ | #r60, Whats New |
POST | #dfn Find Elements | ✓ | #r60, Whats New |
POST | #dfn Find Element From Element | ✓ | #r60, Whats New |
POST | #dfn Find Elements From Element | ✓ | #r60, Whats New |
GET | #dfn Is Element Selected | ✓ | #r60, Whats New |
GET | #dfn Get Element Attribute | ✓ | #r60, Whats New |
GET | #dfn Get Element Property | ✓ | #r60, Whats New |
GET | #dfn Get Element Css Value | ✓ | #r60, Whats New |
GET | #dfn Get Element Text | ✓ | #r60, Whats New |
GET | #dfn Get Element Tag Name | ✓ | #r60, Whats New |
GET | #dfn Get Element Rect | ✓ | #r60, Whats New |
GET | #dfn Is Element Enabled | ✓ | #r60, Whats New |
POST | #dfn Element Click | ✓ | #r60, Whats New |
POST | #dfn Element Clear | ✓ | #r60, Whats New |
POST | #dfn Element Send Keys | ✓ | #r60, Whats New |
GET | #dfn Get Page Source | ✓ | #r60, Whats New |
POST | #dfn Execute Script | ✓ | #r60, Whats New |
POST | #dfn Execute Async Script | ✓ | #r60, Whats New |
GET | #dfn Get All Cookies | ✓ | #r60, Whats New |
GET | #dfn Get Named Cookie | ✓ | #r60, Whats New |
POST | #dfn Adding A Cookie | ✓ | #r60, Whats New |
DELETE | #dfn Delete Cookie | ✓ | #r60, Whats New |
DELETE | #dfn Delete All Cookies | ✓ | #r60, Whats New |
POST | #dfn Perform Actions | ✓ | #r60, Whats New |
DELETE | #dfn Release Actions | ✓ | #r60, Whats New |
POST | #dfn Dismiss Alert | ✓ | #r60, Whats New |
POST | #dfn Accept Alert | ✓ | #r60, Whats New |
GET | #dfn Get Alert Text | ✓ | #r60, Whats New |
POST | #dfn Send Alert Text | ✓ | #r60, Whats New |
GET | #dfn Take Screenshot | ✓ | #r60, Whats New |
GET | #dfn Take Element Screenshot | ✓ | #r60, Whats New |