public function assert_alert_text($expected_text) { $text = WebDriver::WaitUntil(array($this, 'get_alert_text'), array(), $expected_text); PHPUnit_Framework_Assert::assertEquals($expected_text, $text, "Failed asserting that alert text is <{$expected_text}>."); }
public function assert_selected_count($expected_count) { $count = WebDriver::WaitUntil(array($this, 'get_selected_count'), array(), $expected_count); PHPUnit_Framework_Assert::assertEquals($expected_count, $count, "Failed asserting that <{$this->locator}> contains {$expected_count} selected options."); }