Documentation ¶
Index ¶
- func NewChromeClient(seleniumEndpoint string) (selenium.WebDriver, error)
- type Action
- type CSSSelector
- type Check
- type ClassNameSelector
- type ClickButton
- type ClickLink
- type IDSelector
- type InputData
- type LinkTextSelector
- type NameSelector
- type Page
- type PartialLinkTextSelect
- type SearchOption
- type Selenium
- type Service
- type Store
- type TagNameSelector
- type XPathSelector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct { Name string `json:"name"` SearchOption `json:"searchOption"` *InputData `json:"inputdata,omitempty"` *ClickButton `json:"clickbutton,omitempty"` *ClickLink `json:"clicklink,omitempty"` }
Action object
type Check ¶
type Check struct { Name string `json:"name"` SearchOption `json:"searchOption"` Value *string `json:"value,omitempty"` }
Check object
type Page ¶
type Page struct { Name string `json:"name"` PreCheck *Check `json:"precheck,omitempty"` Actions []Action `json:"actions"` PostCheck *Check `json:"postcheck,omitempty"` }
Page object
type PartialLinkTextSelect ¶
type PartialLinkTextSelect struct { }
PartialLinkTextSelect search by partial link text
type SearchOption ¶
type SearchOption struct { Multiple bool `json:"multiple"` SearchPattern string `json:"searchPattern"` *CSSSelector `json:"CSSSelector,omitempty"` *NameSelector `json:"nameSelector,omitempty"` *TagNameSelector `json:"tagNameSelector,omitempty"` *ClassNameSelector `json:"classNameSelector,omitempty"` *IDSelector `json:"IDSelector,omitempty"` *LinkTextSelector `json:"linkTextSelector,omitempty"` *PartialLinkTextSelect `json:"partialLinkTextSelect,omitempty"` *XPathSelector `json:"XPathSelector,omitempty"` }
SearchOption allows you to specify how you would like to search
type Selenium ¶
type Selenium struct { ID bson.ObjectId `bson:"_id,omitempty" json:"omitempty"` SeleniumServer string Name string InitialURL string Pages []Page Threshold int Chats []uint32 Passing bool ErrorCount int LastChecked time.Time LastSuccess time.Time }
halSelenium Object
type Store ¶
type Store interface { /* GetAllSeleniumTests returns all seleniumTests tests */ GetAllSeleniumTests() ([]Selenium, error) /* AddSelenium adds a test to the database */ AddSelenium(selenium Selenium) error /* SetSeleniumFailing sets thje seleniumTests test to a failed state */ SetSeleniumFailing(selenium *Selenium, err error) error /* SetSeleniumPassing sets the seleniumTests test to a passed state */ SetSeleniumPassing(selenium *Selenium) error }
func NewMongoStore ¶
func NewMongoStore(db *mgo.Database) Store
Click to show internal directories.
Click to hide internal directories.