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