Translated using Weblate.
[phpmyadmin.git] / test / selenium / PmaSeleniumXssTest.php
blobf0771a1724dd6ff6d80758470343f2d10facb61d
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.