Documentation
¶
Overview ¶
Package webtest provides WebDriver provisioning and information APIs.
Provision a browser:
import "github.com/bazelbuild/rules_webtesting/go/webtest" driver, err := webtest.NewWebDriverSession(nil)
Provision a browser with capabilities (as an example profiling):
capabilities := map[string]interface{}{ "webdriver.logging.profiler.enabled": true, } driver, err := webtest.NewWebDriverSession(capabilities)
Get basic information about the browser defined by the web test environment:
info, err := webtest.GetBrowserInfo()
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPAddress ¶
HTTPAddress returns the HTTP address of WTL.
func HTTPSAddress ¶
HTTPSAddress returns the HTTPS address of WTL.
func NewWebDriverSession ¶
func NewWebDriverSession(capabilities selenium.Capabilities) (selenium.WebDriver, error)
NewWebDriverSession provisions and returns a new WebDriver session.
Types ¶
type BrowserInfo ¶
type BrowserInfo struct { // The Bazel label for the browser. BrowserLabel string // The Environment that Web Test Launcher is using for the specified configuration. Environment string }
BrowserInfo represents basic information about the browser defined by the web test environment.
func GetBrowserInfo ¶
func GetBrowserInfo() (*BrowserInfo, error)
GetBrowserInfo returns basic information about the browser defined by the web test environment.
Click to show internal directories.
Click to hide internal directories.