class VisibilityTest in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink/driver-testsuite/tests/Basic/VisibilityTest.php \Behat\Mink\Tests\Driver\Basic\VisibilityTest
Hierarchy
- class \Behat\Mink\Tests\Driver\TestCase extends \Behat\Mink\Tests\Driver\PHPUnit_Framework_TestCase
- class \Behat\Mink\Tests\Driver\Basic\VisibilityTest
Expanded class hierarchy of VisibilityTest
File
- vendor/
behat/ mink/ driver-testsuite/ tests/ Basic/ VisibilityTest.php, line 7
Namespace
Behat\Mink\Tests\Driver\BasicView source
class VisibilityTest extends TestCase {
public function testVisibility() {
$this
->getSession()
->visit($this
->pathTo('/js_test.html'));
$webAssert = $this
->getAssertSession();
$clicker = $webAssert
->elementExists('css', '.elements div#clicker');
$invisible = $webAssert
->elementExists('css', '#invisible');
$this
->assertFalse($invisible
->isVisible());
$this
->assertTrue($clicker
->isVisible());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestCase:: |
private static | property | ||
TestCase:: |
private static | property | Mink session manager. | |
TestCase:: |
protected | function | ||
TestCase:: |
protected | function | Creates a new driver instance. | |
TestCase:: |
protected | function | ||
TestCase:: |
protected | function | Returns assert session. | |
TestCase:: |
private static | function | ||
TestCase:: |
protected | function | Returns session. | |
TestCase:: |
protected | function | Map remote file path. | |
TestCase:: |
protected | function | ||
TestCase:: |
protected | function | ||
TestCase:: |
protected | function | Waits for a condition to be true, considering than it is successful for drivers not supporting wait(). | |
TestCase:: |
public static | function | Initializes the test case. | |
TestCase:: |
protected | function | ||
VisibilityTest:: |
public | function |