# README
Selenium Runner
Selenium runner opens a web session to run a various action on web driver or web elements.
Service Id | Action | Description | Request | Response |
---|---|---|---|---|
selenium | start | start standalone selenium server | ServerStartRequest | ServerStartResponse |
selenium | stop | stop standalone selenium server | ServerStopRequest | ServerStopResponse |
selenium | open | open a new browser with session id for further testing | OpenSessionRequest | OpenSessionResponse |
selenium | close | close browser session | CloseSessionRequest | CloseSessionResponse |
selenium | call-driver | call a method on web driver, i.e wb.GET(url) | WebDriverCallRequest | ServiceCallResponse |
selenium | call-element | call a method on a web element, i.e. we.Click() | WebElementCallRequest | WebElementCallResponse |
selenium | run | run set of action on a page | RunRequest | RunResponse |
call-driver and call-element actions's method and parameters are proxied to stand along selenium server via selenium client
Selenium run request defines sequence of action/commands. In case a selector is not specified, call method's caller is a WebDriver, otherwise WebElement defined by selector. Wait provides ability to wait either some time amount or for certain condition to take place, with regexp to extract data
Run request provide commands expression for easy selenium interaction:
Command syntax:
[RESULT_KEY=] [(WEB_ELEMENT_SELECTOR).]METHOD_NAME(PARAMETERS)
i.e:
(#name).sendKeys('dummy 123')
(xpath://SELECT[@id='typeId']/option[text()='type1']).click()
get(http://127.0.0.1:8080/form.html)
Time wait
- command: CurrentURL = CurrentURL()
exit: $CurrentURL:/dummy/
sleepTimeMs: 1000
repeat: 10
Inline pipeline tasks
endly -r=test
# Functions
NewSeleniumService creates a new selenium service.
NewAction creates a new action.
NewCloseSessionRequestFromURL creates a new close session request from URL.
NewMethodCall creates a new method call.
NewOpenSessionRequest creates a new open session request.
NewParser creates a new criteria parser.
NewRunRequest creates a new run request.
NewRunRequestFromURL creates a new request from URL.
NewStartRequestFromURL creates a new start request from URL.
NewStopRequestFromURL creates a new start request from URL.
NewWebElementSelector creates a new instance of web element selector.
No description provided by the author
# Constants
GeckoDriver represents name of gecko driver.
Selenium represents name of selenium server.
ServiceID represents a ServiceID.
# Structs
Action represents various calls on web element.
CloseSessionRequest represents close session request.
CloseSessionResponse represents close session response.
MethodCall represents selenium call.
OpenSessionRequest represents open session request.
OpenSessionResponse represents open session response.
RunRequest represents group of selenium web elements calls.
RunResponse represents selenium call response.
ServiceCallResponse represents selenium call response.
Session represents a selenium session.
StartRequest represents a selenium server start request.
StartResponse repreents a selenium server stop request.
StopRequest represents server stop request.
StopResponse represents a selenium stop request.
WebDriverCallRequest represents selenium call driver request.
WebElementCallRequest represents a web element call reqesut.
WebElementCallResponse represents seleniun web element response.
WebElementSelector represents a web element selector.
# Type aliases
No description provided by the author