Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,10 @@ func (wd *remoteWD) SwitchSession(sessionID string) error {
return nil
}

func (wd *remoteWD) SetW3CCompatibility(isCompatible bool) {
wd.w3cCompatible = isCompatible
}

func (wd *remoteWD) Capabilities() (Capabilities, error) {
url := wd.requestURL("/session/%s", wd.id)
response, err := wd.execute("GET", url, nil)
Expand Down
3 changes: 3 additions & 0 deletions selenium.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ type WebDriver interface {
// SwitchSession switches to the given session ID.
SwitchSession(sessionID string) error

// Toggle W3C compliance.
SetW3CCompatibility(bool)

// Capabilities returns the current session's capabilities.
Capabilities() (Capabilities, error)

Expand Down