InteractsWithPages
trait InteractsWithPages (View source)
Methods
Visit the given URI with a GET request.
Assert that a given string is seen on the current HTML.
Assert that a given string is not seen on the current HTML.
Assert that an element is present on the page.
Assert that an element is not present on the page.
Assert that a given string is seen on the current text.
Assert that a given string is not seen on the current text.
Assert that a given string is seen inside an element.
Assert that a given string is not seen inside an element.
Assert that a given link is seen on the page.
Assert that a given link is not seen on the page.
Assert that an input field contains the given value.
Assert that an input field does not contain the given value.
Assert that the expected value is selected.
Assert that the given value is not selected.
Assert that the given checkbox is selected.
Assert that the given checkbox is not selected.
Details
at line line 207
$this
within(
string $element,
Closure $callback)
Narrow the test content to a specific area of the page.
at line line 261
$this
see(
string $text,
bool $negate = false)
Assert that a given string is seen on the current HTML.
at line line 272
$this
dontSee(
string $text)
Assert that a given string is not seen on the current HTML.
at line line 285
$this
seeElement(
string $selector,
array $attributes = array(),
bool $negate = false)
Assert that an element is present on the page.
at line line 297
$this
dontSeeElement(
string $selector,
array $attributes = array())
Assert that an element is not present on the page.
at line line 309
$this
seeText(
string $text,
bool $negate = false)
Assert that a given string is seen on the current text.
at line line 320
$this
dontSeeText(
string $text)
Assert that a given string is not seen on the current text.
at line line 333
$this
seeInElement(
string $element,
string $text,
bool $negate = false)
Assert that a given string is seen inside an element.
at line line 345
$this
dontSeeInElement(
string $element,
string $text)
Assert that a given string is not seen inside an element.
at line line 358
$this
seeLink(
string $text,
string|null $url = null,
bool $negate = false)
Assert that a given link is seen on the page.
at line line 370
$this
dontSeeLink(
string $text,
string|null $url = null)
Assert that a given link is not seen on the page.
at line line 383
$this
seeInField(
string $selector,
string $expected,
bool $negate = false)
Assert that an input field contains the given value.
at line line 395
$this
dontSeeInField(
string $selector,
string $value)
Assert that an input field does not contain the given value.
at line line 408
$this
seeIsSelected(
string $selector,
string $value,
bool $negate = false)
Assert that the expected value is selected.
at line line 420
$this
dontSeeIsSelected(
string $selector,
string $value)
Assert that the given value is not selected.
at line line 432
$this
seeIsChecked(
string $selector,
bool $negate = false)
Assert that the given checkbox is selected.
at line line 443
$this
dontSeeIsChecked(
string $selector)
Assert that the given checkbox is not selected.