Fixed: Not selecting a datalabel used to issue a notice(undefined offset)
[phpmyadmin/ammaryasirr.git] / test / selenium / PmaSeleniumXssTest.php
blob4f551a0b83e6020c2d2c41319de218545061546c
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Selenium TestCase for XSS related tests
6 * @package phpMyAdmin-test
7 * @group Selenium
8 */
10 require_once('PmaSeleniumTestCase.php');
12 class PmaSeleniumXSSTest extends PmaSeleniumTestCase
14 public function testXssQueryTab()
16 $this->doLogin();
17 $this->selectFrame("frame_content");
18 $this->click("link=SQL");
19 $this->waitForPageToLoad("30000");
20 $this->type("sqlquery", "'\"><script>alert(123);</script>");
21 $this->click("SQL");
22 // If an alert pops up the test fails, since we don't handle an alert.