Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tebeka/selenium
/ functions
Functions
284 in github.com/tebeka/selenium
⨍
Functions
284
◇
Types & classes
40
↓ 44 callers
Function
runTest
(f func(*testing.T, config), c config)
remote_test.go:530
↓ 38 callers
Function
quitRemote
(t *testing.T, wd WebDriver)
remote_test.go:524
↓ 37 callers
Method
Get
Get navigates the browser to the provided URL.
selenium.go:279
↓ 37 callers
Function
newRemote
(t *testing.T, c config)
remote_test.go:515
↓ 31 callers
Method
FindElement
FindElement finds exactly one element in the current page's DOM.
selenium.go:288
↓ 26 callers
Method
requestURL
(template string, args ...interface{})
remote.go:75
↓ 26 callers
Method
voidCommand
(urlTemplate string, params interface{})
remote.go:281
↓ 23 callers
Method
execute
execute performs an HTTP request and inspects the returned data for an error encoded by the remote end in a JSON structure. If no error is present, th
remote.go:126
↓ 17 callers
Method
Close
Close closes the current window.
selenium.go:262
↓ 11 callers
Method
stringCommand
(urlTemplate string)
remote.go:250
↓ 9 callers
Function
newTestCapabilities
(t *testing.T, c config)
remote_test.go:461
↓ 8 callers
Method
Click
Click clicks a mouse button. The button should be one of RightButton, MiddleButton or LeftButton.
selenium.go:313
↓ 8 callers
Method
Error
TODO(minusnine): Make Stacktrace more descriptive. Selenium emits a list of objects that enumerate various fields. This is not standard, though. Error
remote.go:119
↓ 8 callers
Function
round
(f float64)
remote.go:1370
↓ 6 callers
Method
NewSession
()
remote.go:408
↓ 6 callers
Method
Stop
Stop shuts down the WebDriver service, and the X virtual frame buffer if one was started.
service.go:272
↓ 5 callers
Method
GetCookies
GetCookies returns all of the cookies in the browser's jar.
selenium.go:300
↓ 5 callers
Method
SendKeys
SendKeys types into the element.
selenium.go:376
↓ 5 callers
Function
SetDebug
SetDebug sets debug mode
common.go:11
↓ 5 callers
Method
execScriptRaw
(script string, args []interface{}, suffix string)
remote.go:1117
↓ 5 callers
Method
modifyWindow
(name, verb, command string, params interface{})
remote.go:806
↓ 4 callers
Method
AddFirefox
AddFirefox adds Firefox-specific capabilities.
selenium.go:102
↓ 4 callers
Method
CurrentURL
CurrentURL returns the browser's current URL.
selenium.go:256
↓ 4 callers
Method
ExecuteScript
ExecuteScript executes a script.
selenium.go:351
↓ 4 callers
Function
NewFrameBufferWithOptions
NewFrameBufferWithOptions starts an X virtual frame buffer running in the background. FrameBufferOptions may be populated to change the behavior of th
service.go:318
↓ 4 callers
Method
PageSource
PageSource returns the current page's source.
selenium.go:260
↓ 4 callers
Method
SendModifier
SendModifier sends the modifier key to the active element. The modifier can be one of ShiftKey, ControlKey, AltKey, MetaKey. Deprecated: Use KeyDown
selenium.go:325
↓ 4 callers
Method
SwitchFrame
SwitchFrame switches to the given frame. The frame parameter can be the frame's ID as a string, its WebElement instance as returned by GetElement, or
selenium.go:266
↓ 4 callers
Method
execScript
(script string, args []interface{}, suffix string)
remote.go:1133
↓ 4 callers
Method
find
(by, value, suffix, url string)
remote.go:659
↓ 4 callers
Function
pickUnusedPort
()
remote_test.go:110
↓ 3 callers
Method
Addr
Addr returns the URL of the WebDriver endpoint to use for driving the browser.
sauce/connect.go:125
↓ 3 callers
Function
NewRemote
NewRemote creates new remote client, this will also start a new session. capabilities provides the desired capabilities. urlPrefix is the URL to the S
remote.go:221
↓ 3 callers
Function
NewSeleniumService
NewSeleniumService starts a Selenium instance in the background.
service.go:168
↓ 3 callers
Function
Output
Output specifies that the WebDriver service should log to the provided writer.
service.go:99
↓ 3 callers
Method
Quit
Quit ends the current session. The browser instance will be closed.
selenium.go:249
↓ 3 callers
Method
Quit
()
remote.go:587
↓ 3 callers
Method
SessionID
SessionID returns the current session ID
remote.go:529
↓ 3 callers
Method
Start
Start starts the Sauce Connect Proxy.
sauce/connect.go:47
↓ 3 callers
Function
StartFrameBuffer
StartFrameBuffer causes an X virtual frame buffer to start before the WebDriver service. The frame buffer process will be terminated when the service
service.go:63
↓ 3 callers
Method
Wait
Wait works like WaitWithTimeoutAndInterval, but using the default timeout and polling interval.
selenium.go:368
↓ 3 callers
Method
boolQuery
(urlTemplate string)
remote.go:1345
↓ 3 callers
Function
debugLog
(format string, args ...interface{})
common.go:15
↓ 3 callers
Function
findBestPath
(glob string, binary bool)
remote_test.go:65
↓ 3 callers
Function
newService
(cmd *exec.Cmd, urlPrefix string, port int, opts ...ServiceOption)
service.go:224
↓ 3 callers
Function
runTests
(t *testing.T, c config)
remote_test.go:536
↓ 3 callers
Method
start
(port int)
service.go:249
↓ 2 callers
Method
AddChrome
AddChrome adds Chrome-specific capabilities.
selenium.go:96
↓ 2 callers
Method
AddProxy
AddProxy adds proxy configuration to the capabilities.
selenium.go:107
↓ 2 callers
Method
CSSProperty
CSSProperty returns the value of the specified CSS property of the element.
selenium.go:411
↓ 2 callers
Method
CurrentURL
()
remote.go:612
↓ 2 callers
Method
CurrentWindowHandle
()
remote.go:598
↓ 2 callers
Method
DecodeElement
(data []byte)
remote.go:690
↓ 2 callers
Function
GeckoDriver
GeckoDriver sets the path to the geckodriver binary for the Selenium Server. Unlike other drivers, Selenium Server does not support specifying the gec
service.go:110
↓ 2 callers
Method
Get
(url string)
remote.go:626
↓ 2 callers
Method
GetAttribute
GetAttribute returns the named attribute of the element.
selenium.go:401
↓ 2 callers
Method
IsSelected
IsSelected returns true if element is selected.
selenium.go:395
↓ 2 callers
Method
KeyDown
(keys string)
remote.go:1076
↓ 2 callers
Method
Log
(typ log.Type)
remote.go:1227
↓ 2 callers
Function
New
New returns a buffer that contains the payload of a Zip file.
internal/zip/zip.go:15
↓ 2 callers
Method
SessionID
SessionID returns the current session ID.
selenium.go:229
↓ 2 callers
Method
SetLogLevel
SetLogLevel sets the logging level of a component. It is a shortcut for passing a log.Capabilities instance to AddLogging.
selenium.go:118
↓ 2 callers
Method
SetPageLoadTimeout
SetPageLoadTimeout sets the amount of time the driver should wait when loading a page. The timeout will be rounded to nearest millisecond.
selenium.go:246
↓ 2 callers
Method
Stop
Stop terminates the Proxy process.
sauce/connect.go:130
↓ 2 callers
Method
SwitchWindow
SwitchWindow switches the context to the specified window.
selenium.go:268
↓ 2 callers
Method
SwitchWindow
(name string)
remote.go:772
↓ 2 callers
Method
Title
Title returns the current page's title.
selenium.go:258
↓ 2 callers
Method
WaitWithTimeoutAndInterval
(condition Condition, timeout, interval time.Duration)
remote.go:1200
↓ 2 callers
Method
WindowHandles
WindowHandles returns the IDs of current open windows.
selenium.go:254
↓ 2 callers
Method
addExtension
addExtension reads a Chrome extension's data from r, base64-encodes it, and attaches it to the Capabilities instance.
chrome/capabilities.go:143
↓ 2 callers
Function
elementIDFromValue
(v map[string]string)
remote.go:717
↓ 2 callers
Function
executeCommand
(method, url string, data []byte)
remote.go:130
↓ 2 callers
Function
isDisplay
isDisplay validates that the given disp is in the format "x" or "x.y", where x and y are both integers.
service.go:43
↓ 2 callers
Method
keyAction
(action, keys string)
remote.go:1054
↓ 2 callers
Method
location
(suffix string)
remote.go:1380
↓ 2 callers
Function
newW3CCapabilities
Create a W3C-compatible capabilities instance.
remote.go:370
↓ 2 callers
Method
processKeyString
(keys string)
remote.go:1286
↓ 2 callers
Method
rect
rect implements the "Get Element Rect" method of the W3C standard.
remote.go:1442
↓ 2 callers
Function
runFirefoxSubTests
(t *testing.T, c config)
remote_test.go:337
↓ 2 callers
Function
runFirefoxTests
(t *testing.T, webDriverPath string, c config)
remote_test.go:287
↓ 2 callers
Function
runTestProxy
(t *testing.T, c config, caps Capabilities)
remote_test.go:1779
↓ 2 callers
Method
sanitize
()
remote.go:916
↓ 2 callers
Method
stringsCommand
(urlTemplate string)
remote.go:285
↓ 2 callers
Function
voidCommand
(method, url string, params interface{})
remote.go:269
↓ 1 callers
Method
AcceptAlert
AcceptAlert accepts the current alert.
selenium.go:344
↓ 1 callers
Method
ActiveElement
ActiveElement returns the currently active element on the page.
selenium.go:292
↓ 1 callers
Method
AddCookie
AddCookie adds a cookie to the browser's jar.
selenium.go:305
↓ 1 callers
Method
AddUnpackedExtension
AddUnpackedExtension creates a packaged Chrome extension with the files below the provided directory path and causes the browser to load that extensio
chrome/capabilities.go:157
↓ 1 callers
Function
Addr
Addr returns the URL to use for driving a remote web browser.
sauce/sauce.go:10
↓ 1 callers
Method
AlertText
AlertText returns the current alert text.
selenium.go:346
↓ 1 callers
Method
Back
Back moves backward in history.
selenium.go:283
↓ 1 callers
Method
Capabilities
Capabilities returns the current session's capabilities.
selenium.go:235
↓ 1 callers
Method
Clear
Clear clears the element.
selenium.go:380
↓ 1 callers
Method
Close
()
remote.go:766
↓ 1 callers
Method
CloseWindow
CloseWindow closes the specified window.
selenium.go:270
↓ 1 callers
Method
CurrentWindowHandle
CurrentWindowHandle returns the ID of current window handle.
selenium.go:252
↓ 1 callers
Method
DecodeElement
DecodeElement decodes a single element response.
selenium.go:295
↓ 1 callers
Method
DecodeElements
DecodeElements decodes a multi-element response.
selenium.go:297
↓ 1 callers
Method
DecodeElements
(data []byte)
remote.go:728
↓ 1 callers
Method
DeleteCookie
DeleteCookie deletes a cookie to the browser's jar.
selenium.go:309
next →
1–100 of 284, ranked by callers