3 class SimpleSeleniumTest
extends SeleniumTestCase
5 public $name = "Basic selenium test";
7 public function runTest()
9 $this->open( Selenium
::getBaseUrl() . '/index.php?title=Selenium&action=edit' );
10 $this->type( "wpTextbox1", "This is a basic test" );
11 $this->click( "wpPreview" );
12 $this->waitForPageToLoad( 10000 );
15 $source = $this->getText( "//div[@id='wikiPreview']/p" );
16 $correct = strstr( $source, "This is a basic test" );
17 $this->assertEquals( $correct, true );