MCPcopy Create free account

hub / github.com/tebeka/selenium / functions

Functions284 in github.com/tebeka/selenium

↓ 44 callersFunctionrunTest
(f func(*testing.T, config), c config)
remote_test.go:530
↓ 38 callersFunctionquitRemote
(t *testing.T, wd WebDriver)
remote_test.go:524
↓ 37 callersMethodGet
Get navigates the browser to the provided URL.
selenium.go:279
↓ 37 callersFunctionnewRemote
(t *testing.T, c config)
remote_test.go:515
↓ 31 callersMethodFindElement
FindElement finds exactly one element in the current page's DOM.
selenium.go:288
↓ 26 callersMethodrequestURL
(template string, args ...interface{})
remote.go:75
↓ 26 callersMethodvoidCommand
(urlTemplate string, params interface{})
remote.go:281
↓ 23 callersMethodexecute
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 callersMethodClose
Close closes the current window.
selenium.go:262
↓ 11 callersMethodstringCommand
(urlTemplate string)
remote.go:250
↓ 9 callersFunctionnewTestCapabilities
(t *testing.T, c config)
remote_test.go:461
↓ 8 callersMethodClick
Click clicks a mouse button. The button should be one of RightButton, MiddleButton or LeftButton.
selenium.go:313
↓ 8 callersMethodError
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 callersFunctionround
(f float64)
remote.go:1370
↓ 6 callersMethodNewSession
()
remote.go:408
↓ 6 callersMethodStop
Stop shuts down the WebDriver service, and the X virtual frame buffer if one was started.
service.go:272
↓ 5 callersMethodGetCookies
GetCookies returns all of the cookies in the browser's jar.
selenium.go:300
↓ 5 callersMethodSendKeys
SendKeys types into the element.
selenium.go:376
↓ 5 callersFunctionSetDebug
SetDebug sets debug mode
common.go:11
↓ 5 callersMethodexecScriptRaw
(script string, args []interface{}, suffix string)
remote.go:1117
↓ 5 callersMethodmodifyWindow
(name, verb, command string, params interface{})
remote.go:806
↓ 4 callersMethodAddFirefox
AddFirefox adds Firefox-specific capabilities.
selenium.go:102
↓ 4 callersMethodCurrentURL
CurrentURL returns the browser's current URL.
selenium.go:256
↓ 4 callersMethodExecuteScript
ExecuteScript executes a script.
selenium.go:351
↓ 4 callersFunctionNewFrameBufferWithOptions
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 callersMethodPageSource
PageSource returns the current page's source.
selenium.go:260
↓ 4 callersMethodSendModifier
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 callersMethodSwitchFrame
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 callersMethodexecScript
(script string, args []interface{}, suffix string)
remote.go:1133
↓ 4 callersMethodfind
(by, value, suffix, url string)
remote.go:659
↓ 4 callersFunctionpickUnusedPort
()
remote_test.go:110
↓ 3 callersMethodAddr
Addr returns the URL of the WebDriver endpoint to use for driving the browser.
sauce/connect.go:125
↓ 3 callersFunctionNewRemote
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 callersFunctionNewSeleniumService
NewSeleniumService starts a Selenium instance in the background.
service.go:168
↓ 3 callersFunctionOutput
Output specifies that the WebDriver service should log to the provided writer.
service.go:99
↓ 3 callersMethodQuit
Quit ends the current session. The browser instance will be closed.
selenium.go:249
↓ 3 callersMethodQuit
()
remote.go:587
↓ 3 callersMethodSessionID
SessionID returns the current session ID
remote.go:529
↓ 3 callersMethodStart
Start starts the Sauce Connect Proxy.
sauce/connect.go:47
↓ 3 callersFunctionStartFrameBuffer
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 callersMethodWait
Wait works like WaitWithTimeoutAndInterval, but using the default timeout and polling interval.
selenium.go:368
↓ 3 callersMethodboolQuery
(urlTemplate string)
remote.go:1345
↓ 3 callersFunctiondebugLog
(format string, args ...interface{})
common.go:15
↓ 3 callersFunctionfindBestPath
(glob string, binary bool)
remote_test.go:65
↓ 3 callersFunctionnewService
(cmd *exec.Cmd, urlPrefix string, port int, opts ...ServiceOption)
service.go:224
↓ 3 callersFunctionrunTests
(t *testing.T, c config)
remote_test.go:536
↓ 3 callersMethodstart
(port int)
service.go:249
↓ 2 callersMethodAddChrome
AddChrome adds Chrome-specific capabilities.
selenium.go:96
↓ 2 callersMethodAddProxy
AddProxy adds proxy configuration to the capabilities.
selenium.go:107
↓ 2 callersMethodCSSProperty
CSSProperty returns the value of the specified CSS property of the element.
selenium.go:411
↓ 2 callersMethodCurrentURL
()
remote.go:612
↓ 2 callersMethodCurrentWindowHandle
()
remote.go:598
↓ 2 callersMethodDecodeElement
(data []byte)
remote.go:690
↓ 2 callersFunctionGeckoDriver
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 callersMethodGet
(url string)
remote.go:626
↓ 2 callersMethodGetAttribute
GetAttribute returns the named attribute of the element.
selenium.go:401
↓ 2 callersMethodIsSelected
IsSelected returns true if element is selected.
selenium.go:395
↓ 2 callersMethodKeyDown
(keys string)
remote.go:1076
↓ 2 callersMethodLog
(typ log.Type)
remote.go:1227
↓ 2 callersFunctionNew
New returns a buffer that contains the payload of a Zip file.
internal/zip/zip.go:15
↓ 2 callersMethodSessionID
SessionID returns the current session ID.
selenium.go:229
↓ 2 callersMethodSetLogLevel
SetLogLevel sets the logging level of a component. It is a shortcut for passing a log.Capabilities instance to AddLogging.
selenium.go:118
↓ 2 callersMethodSetPageLoadTimeout
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 callersMethodStop
Stop terminates the Proxy process.
sauce/connect.go:130
↓ 2 callersMethodSwitchWindow
SwitchWindow switches the context to the specified window.
selenium.go:268
↓ 2 callersMethodSwitchWindow
(name string)
remote.go:772
↓ 2 callersMethodTitle
Title returns the current page's title.
selenium.go:258
↓ 2 callersMethodWaitWithTimeoutAndInterval
(condition Condition, timeout, interval time.Duration)
remote.go:1200
↓ 2 callersMethodWindowHandles
WindowHandles returns the IDs of current open windows.
selenium.go:254
↓ 2 callersMethodaddExtension
addExtension reads a Chrome extension's data from r, base64-encodes it, and attaches it to the Capabilities instance.
chrome/capabilities.go:143
↓ 2 callersFunctionelementIDFromValue
(v map[string]string)
remote.go:717
↓ 2 callersFunctionexecuteCommand
(method, url string, data []byte)
remote.go:130
↓ 2 callersFunctionisDisplay
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 callersMethodkeyAction
(action, keys string)
remote.go:1054
↓ 2 callersMethodlocation
(suffix string)
remote.go:1380
↓ 2 callersFunctionnewW3CCapabilities
Create a W3C-compatible capabilities instance.
remote.go:370
↓ 2 callersMethodprocessKeyString
(keys string)
remote.go:1286
↓ 2 callersMethodrect
rect implements the "Get Element Rect" method of the W3C standard.
remote.go:1442
↓ 2 callersFunctionrunFirefoxSubTests
(t *testing.T, c config)
remote_test.go:337
↓ 2 callersFunctionrunFirefoxTests
(t *testing.T, webDriverPath string, c config)
remote_test.go:287
↓ 2 callersFunctionrunTestProxy
(t *testing.T, c config, caps Capabilities)
remote_test.go:1779
↓ 2 callersMethodsanitize
()
remote.go:916
↓ 2 callersMethodstringsCommand
(urlTemplate string)
remote.go:285
↓ 2 callersFunctionvoidCommand
(method, url string, params interface{})
remote.go:269
↓ 1 callersMethodAcceptAlert
AcceptAlert accepts the current alert.
selenium.go:344
↓ 1 callersMethodActiveElement
ActiveElement returns the currently active element on the page.
selenium.go:292
↓ 1 callersMethodAddCookie
AddCookie adds a cookie to the browser's jar.
selenium.go:305
↓ 1 callersMethodAddUnpackedExtension
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 callersFunctionAddr
Addr returns the URL to use for driving a remote web browser.
sauce/sauce.go:10
↓ 1 callersMethodAlertText
AlertText returns the current alert text.
selenium.go:346
↓ 1 callersMethodBack
Back moves backward in history.
selenium.go:283
↓ 1 callersMethodCapabilities
Capabilities returns the current session's capabilities.
selenium.go:235
↓ 1 callersMethodClear
Clear clears the element.
selenium.go:380
↓ 1 callersMethodClose
()
remote.go:766
↓ 1 callersMethodCloseWindow
CloseWindow closes the specified window.
selenium.go:270
↓ 1 callersMethodCurrentWindowHandle
CurrentWindowHandle returns the ID of current window handle.
selenium.go:252
↓ 1 callersMethodDecodeElement
DecodeElement decodes a single element response.
selenium.go:295
↓ 1 callersMethodDecodeElements
DecodeElements decodes a multi-element response.
selenium.go:297
↓ 1 callersMethodDecodeElements
(data []byte)
remote.go:728
↓ 1 callersMethodDeleteCookie
DeleteCookie deletes a cookie to the browser's jar.
selenium.go:309
next →1–100 of 284, ranked by callers