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
↓ 1 callers
Function
DeleteSession
DeleteSession deletes an existing session at the WebDriver instance specified by the urlPrefix and the session ID.
remote.go:241
↓ 1 callers
Method
DismissAlert
DismissAlert dismisses current alert.
selenium.go:342
↓ 1 callers
Function
Display
Display specifies the value to which set the DISPLAY environment variable, as well as the path to the Xauthority file containing credentials needed to
service.go:24
↓ 1 callers
Method
FindElement
(by, value string)
remote.go:749
↓ 1 callers
Method
FindElements
FindElement finds potentially many elements in the current page's DOM.
selenium.go:290
↓ 1 callers
Method
Forward
Forward moves forward in history.
selenium.go:281
↓ 1 callers
Method
GetCookie
GetCookie returns the named cookie in the jar, if present. This method is only implemented for Firefox.
selenium.go:303
↓ 1 callers
Method
GetCookies
()
remote.go:972
↓ 1 callers
Function
HTMLUnit
HTMLUnit specifies the path to the JAR for the HTMLUnit driver (compiled with its dependencies). https://github.com/SeleniumHQ/htmlunit-driver/releas
service.go:138
↓ 1 callers
Method
IsDisplayed
IsDisplayed returns true if the element is displayed.
selenium.go:399
↓ 1 callers
Function
JavaPath
JavaPath specifies the path to the JRE.
service.go:127
↓ 1 callers
Method
KeyDown
KeyDown sends a sequence of keystrokes to the active element. This method is similar to SendKeys but without the implicit termination. Modifiers are n
selenium.go:329
↓ 1 callers
Method
KeyUp
KeyUp indicates that a previous keystroke sent by KeyDown should be released.
selenium.go:332
↓ 1 callers
Method
KeyUp
(keys string)
remote.go:1085
↓ 1 callers
Method
Location
Location returns the element's location.
selenium.go:403
↓ 1 callers
Method
LocationInView
LocationInView returns the element's location once it has been scrolled into view.
selenium.go:406
↓ 1 callers
Method
MaximizeWindow
MaximizeWindow maximizes a window. If the name is empty, the current window will be maximized.
selenium.go:273
↓ 1 callers
Function
NewChromeDriverService
NewChromeDriverService starts a ChromeDriver instance in the background.
service.go:198
↓ 1 callers
Function
NewExtension
NewExtension creates the payload of a Chrome extension file which is signed using the returned private key.
chrome/capabilities.go:167
↓ 1 callers
Function
NewExtensionWithKey
NewExtensionWithKey creates the payload of a Chrome extension file which is signed by the provided private key.
chrome/capabilities.go:181
↓ 1 callers
Function
NewFrameBuffer
NewFrameBuffer starts an X virtual frame buffer running in the background. This is equivalent to calling NewFrameBufferWithOptions with an empty NewF
service.go:312
↓ 1 callers
Function
NewGeckoDriverService
NewGeckoDriverService starts a GeckoDriver instance in the background.
service.go:212
↓ 1 callers
Method
PageSource
()
remote.go:655
↓ 1 callers
Method
Refresh
Refresh refreshes the page.
selenium.go:285
↓ 1 callers
Method
ResizeWindow
ResizeWindow changes the dimensions of a window. If the name is empty, the current window will be maximized.
selenium.go:276
↓ 1 callers
Method
Screenshot
Screenshot takes a screenshot of the browser window.
selenium.go:334
↓ 1 callers
Method
SetAsyncScriptTimeout
SetAsyncScriptTimeout sets the amount of time that asynchronous scripts are permitted to run before they are aborted. The timeout will be rounded to n
selenium.go:240
↓ 1 callers
Method
SetImplicitWaitTimeout
SetImplicitWaitTimeout sets the amount of time the driver should wait when searching for elements. The timeout will be rounded to nearest millisecond.
selenium.go:243
↓ 1 callers
Method
SetProfile
SetProfile sets the Profile datum with a Base64-encoded zip file of a profile directory that is specified by basePath. This directory should directly
firefox/capabilities.go:44
↓ 1 callers
Method
Size
Size returns the element's size.
selenium.go:408
↓ 1 callers
Function
StartFrameBufferWithOptions
StartFrameBufferWithOptions causes an X virtual frame buffer to start before the WebDriver service. The frame buffer process will be terminated when t
service.go:77
↓ 1 callers
Method
Status
Status returns various pieces of information about the server environment.
selenium.go:217
↓ 1 callers
Method
Text
Text returns the text of the element.
selenium.go:393
↓ 1 callers
Method
ToMap
ToMap returns the capabilities in a key/value structure.
sauce/sauce.go:133
↓ 1 callers
Method
WaitWithTimeout
WaitWithTimeout works like WaitWithTimeoutAndInterval, but with default polling interval.
selenium.go:365
↓ 1 callers
Function
allowProxyForLocalhost
(browser string, caps Capabilities)
remote_test.go:1812
↓ 1 callers
Method
boolCommand
(urlTemplate string)
remote.go:300
↓ 1 callers
Function
filteredURL
filteredURL replaces existing password from the given URL.
common.go:23
↓ 1 callers
Function
newRequest
(method string, url string, data []byte)
remote.go:65
↓ 1 callers
Function
parseVersion
parseVersion sanitizes the browser version enough for semver.ParseTolerant to parse it.
remote.go:332
↓ 1 callers
Function
setDriverPaths
()
remote_test.go:94
↓ 1 callers
Function
v
(s string)
remote_test.go:1214
Method
AcceptAlert
()
remote.go:1100
Method
ActiveElement
()
remote.go:892
Method
AddCookie
(cookie *Cookie)
remote.go:1007
Method
AddExtension
AddExtension adds an extension for the browser to load at startup. The path parameter should be a path to an extension file (which typically has a `.c
chrome/capabilities.go:132
Method
AddLogging
AddLogging adds logging configuration to the capabilities.
selenium.go:112
Method
AlertText
()
remote.go:1104
Method
Back
()
remote.go:643
Method
ButtonDown
ButtonDown causes the left mouse button to be held down.
selenium.go:317
Method
ButtonDown
TODO(minusnine): add a test for ButtonDown.
remote.go:1038
Method
ButtonUp
ButtonUp causes the left mouse button to be released.
selenium.go:319
Method
ButtonUp
TODO(minusnine): add a test for ButtonUp.
remote.go:1043
Method
CSSProperty
(name string)
remote.go:1456
Method
Capabilities
()
remote.go:538
Function
ChromeDriver
ChromeDriver sets the path for Chromedriver for the Selenium Server. This ServiceOption is only useful when calling NewSeleniumService.
service.go:119
Method
Clear
()
remote.go:1312
Method
Click
Click clicks on the element.
selenium.go:374
Method
Click
TODO(minusnine): add a test for Click.
remote.go:1026
Method
Click
()
remote.go:1276
Method
CloseWindow
(name string)
remote.go:782
Method
DeleteAllCookies
DeleteAllCookies deletes all of the cookies in the browser's jar.
selenium.go:307
Method
DeleteAllCookies
()
remote.go:1013
Method
DeleteCookie
(name string)
remote.go:1019
Method
DismissAlert
TODO(minusnine): Implement PerformActions and ReleaseActions, for more direct access to the W3C specification.
remote.go:1096
Method
DoubleClick
DoubleClick clicks the left mouse button twice.
selenium.go:315
Method
DoubleClick
TODO(minusnine): add a test for DoubleClick.
remote.go:1033
Function
Example
This example shows how to navigate to a http://play.golang.org page, input a short program, run it, and inspect its output. If you want to actually r
example_test.go:22
Method
ExecuteScript
(script string, args []interface{})
remote.go:1147
Method
ExecuteScriptAsync
ExecuteScriptAsync asynchronously executes a script.
selenium.go:353
Method
ExecuteScriptAsync
(script string, args []interface{})
remote.go:1154
Method
ExecuteScriptAsyncRaw
ExecuteScriptAsyncRaw asynchronously executes a script but does not perform JSON decoding.
selenium.go:359
Method
ExecuteScriptAsyncRaw
(script string, args []interface{})
remote.go:1168
Method
ExecuteScriptRaw
ExecuteScriptRaw executes a script but does not perform JSON decoding.
selenium.go:356
Method
ExecuteScriptRaw
(script string, args []interface{})
remote.go:1161
Method
FindElement
FindElement finds a child element.
selenium.go:386
Method
FindElement
(by, value string)
remote.go:1325
Method
FindElements
FindElement finds multiple children elements.
selenium.go:388
Method
FindElements
(by, value string)
remote.go:757
Method
FindElements
(by, value string)
remote.go:1335
Method
Forward
()
remote.go:639
Method
FrameBuffer
FrameBuffer returns the FrameBuffer if one was started by the service and nil otherwise.
service.go:163
Method
GetAttribute
TODO(minusnine): Add Property(name string) (string, error).
remote.go:1363
Method
GetCookie
(name string)
remote.go:935
Method
IsDisplayed
()
remote.go:1357
Method
IsEnabled
IsEnabled returns true if the element is enabled.
selenium.go:397
Method
IsEnabled
()
remote.go:1353
Method
IsSelected
()
remote.go:1349
Method
Location
()
remote.go:1403
Method
LocationInView
()
remote.go:1407
Method
Log
Log fetches the logs. Log types must be previously configured in the capabilities. NOTE: will return an error (not implemented) on IE11 or Edge drive
selenium.go:339
Method
MarshalJSON
()
remote.go:1461
Method
MaximizeWindow
(name string)
remote.go:786
Method
MinimizeWindow
(name string)
remote.go:802
Method
MoveTo
MoveTo moves the mouse to relative coordinates from center of element, If the element is not visible, it will be scrolled into view.
selenium.go:383
Method
MoveTo
(xOffset, yOffset int)
remote.go:1317
Method
NewSession
NewSession starts a new session and returns the session ID.
selenium.go:220
Method
Refresh
()
remote.go:647
Method
ResizeWindow
(name string, width, height int)
remote.go:856
Method
Rewrite
(ctx context.Context, _ *socks5.Request)
remote_test.go:1693
← previous
next →
101–200 of 284, ranked by callers