Skip to content

Sequence is a frontend for Webdriver testing. It's goal is to make writing and managing frontend tests easier in Go.

License

Notifications You must be signed in to change notification settings

timshannon/sequence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sequence

Sequence is a frontend for Webdriver testing. It's main goal are to be easy to use and to make writing frontend tests easier in Go.

Overview

A sequence is a chain of functions that test a web page. If any item in the sequence fails, it drops out early and returns the error. Compare the test example from the Go Selenium webdriver to Sequence:

err = sequence.Start(wd).
    Get("http://play.golang.org/?simple=1").
    Find("#code").Clear().SendKeys(`
        package main
        import "fmt"

        func main() {
            fmt.Println("Hello WebDriver!\n")
        }
    `).
    Find("#run").Click().
    Find("#output").Text().Contains("Hello WebDriver").Eventually().
    End()
if err != nil {
    panic(err)
}

The underlying WebDriver library does all the work. Sequence simply presents a easier API to work with.

See the documentation for more details.

About

Sequence is a frontend for Webdriver testing. It's goal is to make writing and managing frontend tests easier in Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages