Documentation ¶
Index ¶
- func BeFound() types.GomegaMatcher
- func BeSelected() types.GomegaMatcher
- func BeVisible() types.GomegaMatcher
- func EqualElement(comparable interface{}) types.GomegaMatcher
- func HaveAttribute(attribute string, value string) types.GomegaMatcher
- func HaveCSS(property string, value string) types.GomegaMatcher
- func HaveText(text string) types.GomegaMatcher
- func HaveTitle(title string) types.GomegaMatcher
- func MatchText(regexp string) types.GomegaMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeFound ¶
func BeFound() types.GomegaMatcher
BeFound passes when the provided selection refers to one or more elements on the page.
func BeSelected ¶
func BeSelected() types.GomegaMatcher
BeSelected passes when the provided selection refers to a form element that is selected. Examples: a checked <input type="checkbox" />, or the selected <option> in a <select> This matcher will fail if the provided selection refers to more than one element.
func BeVisible ¶
func BeVisible() types.GomegaMatcher
BeVisible passes when the selection refers to an element that is displayed on the page. This matcher will fail if the provided selection refers to more than one element.
func EqualElement ¶
func EqualElement(comparable interface{}) types.GomegaMatcher
EqualElement passes when the expected selection refers to the same element as the provided actual selection. This matcher will fail if either selection refers to more than one element.
func HaveAttribute ¶
func HaveAttribute(attribute string, value string) types.GomegaMatcher
HaveAttribute passes when the expected attribute and value are present on the element. This matcher will fail if the provided selection refers to more than one element.
func HaveCSS ¶
func HaveCSS(property string, value string) types.GomegaMatcher
HaveCSS passes when the expected CSS property and value are present on the element. This matcher only matches exact, calculated CSS values. Example: rgba(0, 0, 255, 1) not "blue". This matcher will fail if the provided selection refers to more than one element.
func HaveText ¶
func HaveText(text string) types.GomegaMatcher
HaveText passes when the expected text is equal to the actual element text. This matcher will fail if the provided selection refers to more than one element.
func HaveTitle ¶
func HaveTitle(title string) types.GomegaMatcher
HaveTitle passes when the expected title is equivalent to the title of the provided page.
func MatchText ¶
func MatchText(regexp string) types.GomegaMatcher
MatchText passes when the expected regular expression matches the actual element text. This matcher will fail if the provided selection refers to more than one element.
Types ¶
This section is empty.