Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #303

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
16 changes: 8 additions & 8 deletions selenium.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,13 @@ type WebDriver interface {

// SetAsyncScriptTimeout sets the amount of time that asynchronous scripts
// are permitted to run before they are aborted. The timeout will be rounded
// to nearest millisecond.
// to the nearest millisecond.
SetAsyncScriptTimeout(timeout time.Duration) error
// SetImplicitWaitTimeout sets the amount of time the driver should wait when
// searching for elements. The timeout will be rounded to nearest millisecond.
// searching for elements. The timeout will be rounded to the nearest millisecond.
SetImplicitWaitTimeout(timeout time.Duration) error
// SetPageLoadTimeout sets the amount of time the driver should wait when
// loading a page. The timeout will be rounded to nearest millisecond.
// loading a page. The timeout will be rounded to the nearest millisecond.
SetPageLoadTimeout(timeout time.Duration) error

// Quit ends the current session. The browser instance will be closed.
Expand Down Expand Up @@ -321,7 +321,7 @@ type WebDriver interface {

// Get navigates the browser to the provided URL.
Get(url string) error
// Forward moves forward in history.
// Forward moves in history.
Forward() error
// Back moves backward in history.
Back() error
Expand All @@ -330,7 +330,7 @@ type WebDriver interface {

// FindElement finds exactly one element in the current page's DOM.
FindElement(by, value string) (WebElement, error)
// FindElement finds potentially many elements in the current page's DOM.
// FindElements finds potentially many elements in the current page's DOM.
FindElements(by, value string) ([]WebElement, error)
// ActiveElement returns the currently active element on the page.
ActiveElement() (WebElement, error)
Expand All @@ -340,14 +340,14 @@ type WebDriver interface {
// DecodeElements decodes a multi-element response.
DecodeElements([]byte) ([]WebElement, error)

// GetCookies returns all of the cookies in the browser's jar.
// GetCookies returns all the cookies in the browser's jar.
GetCookies() ([]Cookie, error)
// GetCookie returns the named cookie in the jar, if present. This method is
// only implemented for Firefox.
GetCookie(name string) (Cookie, error)
// AddCookie adds a cookie to the browser's jar.
AddCookie(cookie *Cookie) error
// DeleteAllCookies deletes all of the cookies in the browser's jar.
// DeleteAllCookies deletes all the cookies in the browser's jar.
DeleteAllCookies() error
// DeleteCookie deletes a cookie to the browser's jar.
DeleteCookie(name string) error
Expand Down Expand Up @@ -428,7 +428,7 @@ type WebDriver interface {
// WaitWithTimeout works like WaitWithTimeoutAndInterval, but with default polling interval.
WaitWithTimeout(condition Condition, timeout time.Duration) error

//Wait works like WaitWithTimeoutAndInterval, but using the default timeout and polling interval.
// Wait works like WaitWithTimeoutAndInterval, but using the default timeout and polling interval.
Wait(condition Condition) error
}

Expand Down