MCPcopy Create free account

hub / github.com/tebeka/selenium / functions

Functions284 in github.com/tebeka/selenium

↓ 1 callersFunctionDeleteSession
DeleteSession deletes an existing session at the WebDriver instance specified by the urlPrefix and the session ID.
remote.go:241
↓ 1 callersMethodDismissAlert
DismissAlert dismisses current alert.
selenium.go:342
↓ 1 callersFunctionDisplay
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 callersMethodFindElement
(by, value string)
remote.go:749
↓ 1 callersMethodFindElements
FindElement finds potentially many elements in the current page's DOM.
selenium.go:290
↓ 1 callersMethodForward
Forward moves forward in history.
selenium.go:281
↓ 1 callersMethodGetCookie
GetCookie returns the named cookie in the jar, if present. This method is only implemented for Firefox.
selenium.go:303
↓ 1 callersMethodGetCookies
()
remote.go:972
↓ 1 callersFunctionHTMLUnit
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 callersMethodIsDisplayed
IsDisplayed returns true if the element is displayed.
selenium.go:399
↓ 1 callersFunctionJavaPath
JavaPath specifies the path to the JRE.
service.go:127
↓ 1 callersMethodKeyDown
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 callersMethodKeyUp
KeyUp indicates that a previous keystroke sent by KeyDown should be released.
selenium.go:332
↓ 1 callersMethodKeyUp
(keys string)
remote.go:1085
↓ 1 callersMethodLocation
Location returns the element's location.
selenium.go:403
↓ 1 callersMethodLocationInView
LocationInView returns the element's location once it has been scrolled into view.
selenium.go:406
↓ 1 callersMethodMaximizeWindow
MaximizeWindow maximizes a window. If the name is empty, the current window will be maximized.
selenium.go:273
↓ 1 callersFunctionNewChromeDriverService
NewChromeDriverService starts a ChromeDriver instance in the background.
service.go:198
↓ 1 callersFunctionNewExtension
NewExtension creates the payload of a Chrome extension file which is signed using the returned private key.
chrome/capabilities.go:167
↓ 1 callersFunctionNewExtensionWithKey
NewExtensionWithKey creates the payload of a Chrome extension file which is signed by the provided private key.
chrome/capabilities.go:181
↓ 1 callersFunctionNewFrameBuffer
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 callersFunctionNewGeckoDriverService
NewGeckoDriverService starts a GeckoDriver instance in the background.
service.go:212
↓ 1 callersMethodPageSource
()
remote.go:655
↓ 1 callersMethodRefresh
Refresh refreshes the page.
selenium.go:285
↓ 1 callersMethodResizeWindow
ResizeWindow changes the dimensions of a window. If the name is empty, the current window will be maximized.
selenium.go:276
↓ 1 callersMethodScreenshot
Screenshot takes a screenshot of the browser window.
selenium.go:334
↓ 1 callersMethodSetAsyncScriptTimeout
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 callersMethodSetImplicitWaitTimeout
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 callersMethodSetProfile
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 callersMethodSize
Size returns the element's size.
selenium.go:408
↓ 1 callersFunctionStartFrameBufferWithOptions
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 callersMethodStatus
Status returns various pieces of information about the server environment.
selenium.go:217
↓ 1 callersMethodText
Text returns the text of the element.
selenium.go:393
↓ 1 callersMethodToMap
ToMap returns the capabilities in a key/value structure.
sauce/sauce.go:133
↓ 1 callersMethodWaitWithTimeout
WaitWithTimeout works like WaitWithTimeoutAndInterval, but with default polling interval.
selenium.go:365
↓ 1 callersFunctionallowProxyForLocalhost
(browser string, caps Capabilities)
remote_test.go:1812
↓ 1 callersMethodboolCommand
(urlTemplate string)
remote.go:300
↓ 1 callersFunctionfilteredURL
filteredURL replaces existing password from the given URL.
common.go:23
↓ 1 callersFunctionnewRequest
(method string, url string, data []byte)
remote.go:65
↓ 1 callersFunctionparseVersion
parseVersion sanitizes the browser version enough for semver.ParseTolerant to parse it.
remote.go:332
↓ 1 callersFunctionsetDriverPaths
()
remote_test.go:94
↓ 1 callersFunctionv
(s string)
remote_test.go:1214
MethodAcceptAlert
()
remote.go:1100
MethodActiveElement
()
remote.go:892
MethodAddCookie
(cookie *Cookie)
remote.go:1007
MethodAddExtension
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
MethodAddLogging
AddLogging adds logging configuration to the capabilities.
selenium.go:112
MethodAlertText
()
remote.go:1104
MethodBack
()
remote.go:643
MethodButtonDown
ButtonDown causes the left mouse button to be held down.
selenium.go:317
MethodButtonDown
TODO(minusnine): add a test for ButtonDown.
remote.go:1038
MethodButtonUp
ButtonUp causes the left mouse button to be released.
selenium.go:319
MethodButtonUp
TODO(minusnine): add a test for ButtonUp.
remote.go:1043
MethodCSSProperty
(name string)
remote.go:1456
MethodCapabilities
()
remote.go:538
FunctionChromeDriver
ChromeDriver sets the path for Chromedriver for the Selenium Server. This ServiceOption is only useful when calling NewSeleniumService.
service.go:119
MethodClear
()
remote.go:1312
MethodClick
Click clicks on the element.
selenium.go:374
MethodClick
TODO(minusnine): add a test for Click.
remote.go:1026
MethodClick
()
remote.go:1276
MethodCloseWindow
(name string)
remote.go:782
MethodDeleteAllCookies
DeleteAllCookies deletes all of the cookies in the browser's jar.
selenium.go:307
MethodDeleteAllCookies
()
remote.go:1013
MethodDeleteCookie
(name string)
remote.go:1019
MethodDismissAlert
TODO(minusnine): Implement PerformActions and ReleaseActions, for more direct access to the W3C specification.
remote.go:1096
MethodDoubleClick
DoubleClick clicks the left mouse button twice.
selenium.go:315
MethodDoubleClick
TODO(minusnine): add a test for DoubleClick.
remote.go:1033
FunctionExample
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
MethodExecuteScript
(script string, args []interface{})
remote.go:1147
MethodExecuteScriptAsync
ExecuteScriptAsync asynchronously executes a script.
selenium.go:353
MethodExecuteScriptAsync
(script string, args []interface{})
remote.go:1154
MethodExecuteScriptAsyncRaw
ExecuteScriptAsyncRaw asynchronously executes a script but does not perform JSON decoding.
selenium.go:359
MethodExecuteScriptAsyncRaw
(script string, args []interface{})
remote.go:1168
MethodExecuteScriptRaw
ExecuteScriptRaw executes a script but does not perform JSON decoding.
selenium.go:356
MethodExecuteScriptRaw
(script string, args []interface{})
remote.go:1161
MethodFindElement
FindElement finds a child element.
selenium.go:386
MethodFindElement
(by, value string)
remote.go:1325
MethodFindElements
FindElement finds multiple children elements.
selenium.go:388
MethodFindElements
(by, value string)
remote.go:757
MethodFindElements
(by, value string)
remote.go:1335
MethodForward
()
remote.go:639
MethodFrameBuffer
FrameBuffer returns the FrameBuffer if one was started by the service and nil otherwise.
service.go:163
MethodGetAttribute
TODO(minusnine): Add Property(name string) (string, error).
remote.go:1363
MethodGetCookie
(name string)
remote.go:935
MethodIsDisplayed
()
remote.go:1357
MethodIsEnabled
IsEnabled returns true if the element is enabled.
selenium.go:397
MethodIsEnabled
()
remote.go:1353
MethodIsSelected
()
remote.go:1349
MethodLocation
()
remote.go:1403
MethodLocationInView
()
remote.go:1407
MethodLog
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
MethodMarshalJSON
()
remote.go:1461
MethodMaximizeWindow
(name string)
remote.go:786
MethodMinimizeWindow
(name string)
remote.go:802
MethodMoveTo
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
MethodMoveTo
(xOffset, yOffset int)
remote.go:1317
MethodNewSession
NewSession starts a new session and returns the session ID.
selenium.go:220
MethodRefresh
()
remote.go:647
MethodResizeWindow
(name string, width, height int)
remote.go:856
MethodRewrite
(ctx context.Context, _ *socks5.Request)
remote_test.go:1693
← previousnext →101–200 of 284, ranked by callers