DomCrawlerAssertionsTrait
Ideas borrowed from Laravel Dusk's assertions.
Tags
Table of Contents
Methods
- assertCheckboxChecked() : void
- assertCheckboxNotChecked() : void
- assertFormValue() : void
- assertInputValueNotSame() : void
- assertInputValueSame() : void
- assertNoFormValue() : void
- assertPageTitleContains() : void
- assertPageTitleSame() : void
- assertSelectorExists() : void
- assertSelectorNotExists() : void
- assertSelectorTextContains() : void
- assertSelectorTextNotContains() : void
- assertSelectorTextSame() : void
- getCrawler() : Crawler
Methods
assertCheckboxChecked()
public
static assertCheckboxChecked(string $fieldName[, string $message = '' ]) : void
Parameters
- $fieldName : string
- $message : string = ''
assertCheckboxNotChecked()
public
static assertCheckboxNotChecked(string $fieldName[, string $message = '' ]) : void
Parameters
- $fieldName : string
- $message : string = ''
assertFormValue()
public
static assertFormValue(string $formSelector, string $fieldName, string $value[, string $message = '' ]) : void
Parameters
- $formSelector : string
- $fieldName : string
- $value : string
- $message : string = ''
assertInputValueNotSame()
public
static assertInputValueNotSame(string $fieldName, string $expectedValue[, string $message = '' ]) : void
Parameters
- $fieldName : string
- $expectedValue : string
- $message : string = ''
assertInputValueSame()
public
static assertInputValueSame(string $fieldName, string $expectedValue[, string $message = '' ]) : void
Parameters
- $fieldName : string
- $expectedValue : string
- $message : string = ''
assertNoFormValue()
public
static assertNoFormValue(string $formSelector, string $fieldName[, string $message = '' ]) : void
Parameters
- $formSelector : string
- $fieldName : string
- $message : string = ''
assertPageTitleContains()
public
static assertPageTitleContains(string $expectedTitle[, string $message = '' ]) : void
Parameters
- $expectedTitle : string
- $message : string = ''
assertPageTitleSame()
public
static assertPageTitleSame(string $expectedTitle[, string $message = '' ]) : void
Parameters
- $expectedTitle : string
- $message : string = ''
assertSelectorExists()
public
static assertSelectorExists(string $selector[, string $message = '' ]) : void
Parameters
- $selector : string
- $message : string = ''
assertSelectorNotExists()
public
static assertSelectorNotExists(string $selector[, string $message = '' ]) : void
Parameters
- $selector : string
- $message : string = ''
assertSelectorTextContains()
public
static assertSelectorTextContains(string $selector, string $text[, string $message = '' ]) : void
Parameters
- $selector : string
- $text : string
- $message : string = ''
assertSelectorTextNotContains()
public
static assertSelectorTextNotContains(string $selector, string $text[, string $message = '' ]) : void
Parameters
- $selector : string
- $text : string
- $message : string = ''
assertSelectorTextSame()
public
static assertSelectorTextSame(string $selector, string $text[, string $message = '' ]) : void
Parameters
- $selector : string
- $text : string
- $message : string = ''
getCrawler()
private
static getCrawler() : Crawler