InteractsWithPages (Foundation\Testing)
InteractsWithPages
trait InteractsWithPages (View source)
Methods
$this | visit( string $uri) Visit the given URI with a GET request. | |
$this | seeInElement( string $element, string $text, bool $negate = false) Assert that a given string is seen inside an element. | |
$this | dontSeeInElement( string $element, string $text) Assert that a given string is not seen inside an element. | |
$this | seeLink( string $text, string|null $url = null) Assert that a given link is seen on the page. | |
$this | dontSeeLink( string $text, string|null $url = null) Assert that a given link is not seen on the page. | |
$this | seeInField( string $selector, string $expected) Assert that an input field contains the given value. | |
$this | dontSeeInField( string $selector, string $value) Assert that an input field does not contain the given value. | |
$this | seeIsChecked( string $selector) Assert that the given checkbox is selected. | |
$this | dontSeeIsChecked( string $selector) Assert that the given checkbox is not selected. | |
$this | seeIsSelected( string $selector, string $expected) Assert that the expected value is selected. | |
$this | dontSeeIsSelected( string $selector, string $value) Assert that the given value is not selected. |
Details
$this visit( string $uri)
Visit the given URI with a GET request.
$this seeInElement( string $element, string $text, bool $negate = false)
Assert that a given string is seen inside an element.
$this dontSeeInElement( string $element, string $text)
Assert that a given string is not seen inside an element.
$this seeLink( string $text, string|null $url = null)
Assert that a given link is seen on the page.
$this dontSeeLink( string $text, string|null $url = null)
Assert that a given link is not seen on the page.
$this seeInField( string $selector, string $expected)
Assert that an input field contains the given value.
$this dontSeeInField( string $selector, string $value)
Assert that an input field does not contain the given value.
$this seeIsChecked( string $selector)
Assert that the given checkbox is selected.
$this dontSeeIsChecked( string $selector)
Assert that the given checkbox is not selected.
$this seeIsSelected( string $selector, string $expected)
Assert that the expected value is selected.
$this dontSeeIsSelected( string $selector, string $value)
Assert that the given value is not selected.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Foundation/Testing/InteractsWithPages.html