All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.netbeans.modules.selenium2.php.SeleneseTest.php.template Maven / Gradle / Ivy

There is a newer version: RELEASE240
Show newest version

<#assign licensePrefix = " * ">
<#assign licenseLast = " */">
<#include "${project.licensePath}">

<#if namespace?? && namespace?length > 0>
namespace ${namespace};


/**
 * 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