12345678910111213141516171819 |
- <?php
- namespace Behat\Mink\Tests\Driver\Custom;
- use Behat\Mink\Driver\Selenium2Driver;
- use Behat\Mink\Tests\Driver\TestCase;
- class WebDriverTest extends TestCase
- {
- public function testGetWebDriverSessionId()
- {
- /** @var Selenium2Driver $driver */
- $driver = $this->getSession()->getDriver();
- $this->assertNotEmpty($driver->getWebDriverSessionId(), 'Started session has an ID');
- $driver = new Selenium2Driver();
- $this->assertNull($driver->getWebDriverSessionId(), 'Not started session don\'t have an ID');
- }
- }
|