Documentation ¶
Overview ¶
Package selector provides a set of functions for css selector based assertions
Index ¶
- func ContainsTextValue(selection string, expectedTextValue string) func(*http.Response, *http.Request) error
- func DataTestID(value string) string
- func Exists(selections ...string) func(*http.Response, *http.Request) error
- func FirstTextValue(selection string, expectedTextValue string) func(*http.Response, *http.Request) error
- func NotExists(selections ...string) func(*http.Response, *http.Request) error
- func NthTextValue(n int, selection string, expectedTextValue string) func(*http.Response, *http.Request) error
- func Selection(selection string, selectionFunc func(*goquery.Selection) error) func(*http.Response, *http.Request) error
- func TextExists(text string) func(*http.Response, *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsTextValue ¶
func ContainsTextValue(selection string, expectedTextValue string) func(*http.Response, *http.Request) error
ContainsTextValue returns a function that asserts the first element matching the selection contains the expected text value
func DataTestID ¶
DataTestID returns a css selector for a data-test-id attribute
func FirstTextValue ¶
func FirstTextValue(selection string, expectedTextValue string) func(*http.Response, *http.Request) error
FirstTextValue returns a function that asserts the first element matching the selection has the expected text value
func NthTextValue ¶
func NthTextValue(n int, selection string, expectedTextValue string) func(*http.Response, *http.Request) error
NthTextValue returns a function that asserts the nth element matching the selection has the expected text value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.