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