clients

package
v1.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Chrome denotes the Chrome driver
	Chrome = "chrome"

	// Ie denotes the IE driver
	Ie = "ie"

	// Edge denotes the Edge driver
	Edge = "edge"

	// PhantomJS denotes the PhantomJS driver
	PhantomJS = "phantomjs"

	// Desktop denotes the desktop (Appium or WinAppDriver)
	Desktop = "desktop"

	// Mock denotes that a "mock" driver will be used for unit testing
	Mock = "mock"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	DriverType string
	WebDriver  interfaces.DriverService
	IsStarted  bool
}

Client encapsulates the web driver and associated utilities specified by the project's settings.

func NewClient

func NewClient(sysSettings *config.Settings) (*Client, error)

NewClient is a factory for creating new WebDrivers and associated utilities based on the provided configuration.

func (*Client) StartDriver

func (c *Client) StartDriver() error

StartDriver starts the driver associated with this client

func (*Client) StopDriver

func (c *Client) StopDriver() error

StopDriver kills the process the driver associated with this client is running on

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL