2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Selenium TestCase for XSS related tests
6 * @package phpMyAdmin-test
10 require_once('PmaSeleniumTestCase.php');
12 class PmaSeleniumXSSTest
extends PmaSeleniumTestCase
14 public function testXssQueryTab()
17 $this->selectFrame("frame_content");
18 $this->click("link=SQL");
19 $this->waitForPageToLoad("30000");
20 $this->type("sqlquery", "'\"><script>alert(123);</script>");
22 // If an alert pops up the test fails, since we don't handle an alert.