|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/irtiweb/CATS/vendor/behat/mink-selenium2-driver/tests/Custom/ |
Upload File : |
<?php
namespace Behat\Mink\Tests\Driver\Custom;
use Behat\Mink\Tests\Driver\TestCase;
class WindowNameTest extends TestCase
{
const WINDOW_NAME_REGEXP = '/[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}/i';
public function testPatternGetWindowNames()
{
$session = $this->getSession();
$windowNames = $session->getWindowNames();
$this->assertArrayHasKey(0, $windowNames);
foreach ($windowNames as $name) {
$this->assertRegExp(self::WINDOW_NAME_REGEXP, $name);
}
}
public function testGetWindowName()
{
$session = $this->getSession();
$this->assertRegExp(self::WINDOW_NAME_REGEXP, $session->getWindowName());
}
}