Properties

$crawler

$crawler : \Symfony\Component\DomCrawler\Crawler

Type

\Symfony\Component\DomCrawler\Crawler

$inputs

$inputs : array

All of the stored inputs for the current page.

Type

array

$uploads

$uploads : array

All of the stored uploads for the current page.

Type

array

Methods

visit()

visit(  $uri) 

Parameters

$uri

seeInElement()

seeInElement(  $element,   $text,   $negate = false) 

Parameters

$element
$text
$negate

notSeeInElement()

notSeeInElement(  $element,   $text) 

Parameters

$element
$text

seeLink()

seeLink(  $text,   $url = null) 

Parameters

$text
$url

notSeeLink()

notSeeLink(  $text,   $url = null) 

Parameters

$text
$url

seeInField()

seeInField(  $selector,   $expected) 

Parameters

$selector
$expected

notSeeInField()

notSeeInField(  $selector,   $value) 

Parameters

$selector
$value

seeIsChecked()

seeIsChecked(  $selector) 

Parameters

$selector

notSeeIsChecked()

notSeeIsChecked(  $selector) 

Parameters

$selector

seeIsSelected()

seeIsSelected(  $selector,   $expected) 

Parameters

$selector
$expected

notSeeIsSelected()

notSeeIsSelected(  $selector,   $value) 

Parameters

$selector
$value

submitForm()

submitForm(  $buttonText,   $inputs = array(),   $uploads = array()) 

Parameters

$buttonText
$inputs
$uploads

see()

see(  $text,   $negate = false) 

Parameters

$text
$negate

notSee()

notSee(  $text) 

Parameters

$text

hasLink()

hasLink(  $text,   $url = null) 

Parameters

$text
$url

addRootToRelativeUrl()

addRootToRelativeUrl(  $url) 

Parameters

$url

isChecked()

isChecked(  $selector) 

Parameters

$selector

getSelectedValue()

getSelectedValue(  $selector) 

Parameters

$selector

getSelectedValueFromSelect()

getSelectedValueFromSelect(\Symfony\Component\DomCrawler\Crawler  $field) 

Parameters

\Symfony\Component\DomCrawler\Crawler $field

getCheckedValueFromRadioGroup()

getCheckedValueFromRadioGroup(\Symfony\Component\DomCrawler\Crawler  $radioGroup) 

Parameters

\Symfony\Component\DomCrawler\Crawler $radioGroup

click()

click(  $name) 

Parameters

$name

type()

type(  $text,   $element) 

Parameters

$text
$element

check()

check(  $element) 

Parameters

$element

uncheck()

uncheck(  $element) 

Parameters

$element

select()

select(  $option,   $element) 

Parameters

$option
$element

attach()

attach(  $absolutePath,   $element) 

Parameters

$absolutePath
$element

press()

press(  $buttonText) 

Parameters

$buttonText

getInputOrTextAreaValue()

getInputOrTextAreaValue(  $selector) 

Parameters

$selector

seePageIs()

seePageIs(  $uri) 

Parameters

$uri

hasInElement()

hasInElement(  $element,   $text) 

Parameters

$element
$text

storeInput()

storeInput(  $element,   $text) 

Parameters

$element
$text

assertFilterProducesResults()

assertFilterProducesResults(  $filter) 

Parameters

$filter

fillForm()

fillForm(  $buttonText,   $inputs = array()) 

Parameters

$buttonText
$inputs

getForm()

getForm(  $buttonText = null) 

Parameters

$buttonText

filterByNameOrId()

filterByNameOrId(  $name,   $elements = '*') 

Parameters

$name
$elements

makeRequest()

makeRequest(  $method,   $uri,   $parameters = array(),   $cookies = array(),   $files = array()) 

Parameters

$method
$uri
$parameters
$cookies
$files

makeRequestUsingForm()

makeRequestUsingForm(\Symfony\Component\DomCrawler\Form  $form, array  $uploads = array()) 

Parameters

\Symfony\Component\DomCrawler\Form $form
array $uploads

assertPageLoaded()

assertPageLoaded(  $uri,   $message = null) 

Parameters

$uri
$message

convertUploadsForTesting()

convertUploadsForTesting(\Symfony\Component\DomCrawler\Form  $form, array  $uploads) 

Parameters

\Symfony\Component\DomCrawler\Form $form
array $uploads

getUploadedFileForTesting()

getUploadedFileForTesting(  $file,   $uploads,   $name) 

Parameters

$file
$uploads
$name

extractParametersFromForm()

extractParametersFromForm(\Symfony\Component\DomCrawler\Form  $form) 

Parameters

\Symfony\Component\DomCrawler\Form $form

clearInputs()

clearInputs() 

followRedirects()

followRedirects() 

prepareUrlForRequest()

prepareUrlForRequest(  $uri) 

Parameters

$uri