# 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