package
0.8.0
Repository: https://github.com/adrianwit/endly.git
Documentation: pkg.go.dev

# README

Selenium Runner

Selenium runner opens a web session to run a various action on web driver or web elements.

Service IdActionDescriptionRequestResponse
seleniumstartstart standalone selenium serverServerStartRequestServerStartResponse
seleniumstopstop standalone selenium serverServerStopRequestServerStopResponse
seleniumopenopen a new browser with session id for further testingOpenSessionRequestOpenSessionResponse
seleniumcloseclose browser sessionCloseSessionRequestCloseSessionResponse
seleniumcall-drivercall a method on web driver, i.e wb.GET(url)WebDriverCallRequestServiceCallResponse
seleniumcall-elementcall a method on a web element, i.e. we.Click()WebElementCallRequestWebElementCallResponse
seleniumrunrun set of action on a pageRunRequestRunResponse

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

@test.yaml

# 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