org.netbeans.modules.selenium2.php.SeleneseTest.php.template Maven / Gradle / Ivy
<#assign licensePrefix = " * ">
<#assign licenseLast = " */">
<#include "${project.licensePath}">
<#if namespace?? && namespace?length > 0>
namespace ${namespace};
#if>
/**
* Description of ${name}
*
* @author ${user}
*/
class ${name} extends PHPUnit_Framework_TestCase {
/**
* @var \RemoteWebDriver
*/
protected $webDriver;
public function setUp()
{
$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => 'firefox');
$this->webDriver = RemoteWebDriver::create('http://localhost:4444/wd/hub', $capabilities);
}
public function tearDown()
{
$this->webDriver->close();
}
protected $url = 'http://www.netbeans.org/';
public function testSimple()
{
$this->webDriver->get($this->url);
// checking that page title contains word 'NetBeans'
$this->assertContains('NetBeans', $this->webDriver->getTitle());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy