Documentation ¶
Overview ¶
Package seleniumtest provides tests to exercise package selenium. These tests are in a separate package to allow other test harnesses to validate their behavior.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Handler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { path := r.URL.Path page, ok := map[string]string{ "/": homePage, "/other": otherPage, "/search": searchPage, "/log": logPage, "/frame": framePage, "/title": titleChangePage, "/alert": alertPage, }[path] if !ok { http.NotFound(w, r) return } if path == "/search" { r.ParseForm() if len(r.Form) > 0 { page = fmt.Sprintf(page, r.Form["q"][0], r.Form["s"][0]) } } for i := 0; i < 3; i++ { http.SetCookie(w, &http.Cookie{ Name: fmt.Sprintf("cookie-%d", i), Value: fmt.Sprintf("value-%d", i), }) } fmt.Fprintf(w, page) })
Functions ¶
func RunChromeTests ¶
func RunCommonTests ¶
func RunFirefoxTests ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.