selenius

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WD

type WD struct {
	// contains filtered or unexported fields
}

func NewWD

func NewWD(browsers string, path string) (*WD, error)

func (*WD) AcceptAlert

func (wd *WD) AcceptAlert() error

func (*WD) ActiveElement

func (wd *WD) ActiveElement() (WebElement, error)

func (*WD) ExecuteScript

func (wd *WD) ExecuteScript(script string, args []interface{}) (interface{}, error)

func (*WD) FindElementBySelector

func (wd *WD) FindElementBySelector(token string) []WebElement

find element by selector & panic if error occupiers

func (*WD) Get

func (wd *WD) Get(url string) error

Get navigates the browser to the provided URL.

func (*WD) MaximizeWindow

func (wd *WD) MaximizeWindow(title string) error

func (*WD) SaveScreenShoot

func (wd *WD) SaveScreenShoot(filename string)

создает скриншот текущего окна браузера и сохраняет его в папке программы

func (*WD) SetAlertText

func (wd *WD) SetAlertText(text string) error

создает скриншот текущего окна браузера и сохраняет его в папке программы

func (*WD) Status

func (wd *WD) Status() (*Status, error)

Status returns various pieces of information about the server environment.

Directories

Path Synopsis
read file with seleniumCSS command and run with Chrome
read file with seleniumCSS command and run with Chrome

Jump to

Keyboard shortcuts

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