Index: trunk/phase3/maintenance/tests/selenium/Selenium.php |
— | — | @@ -37,12 +37,16 @@ |
38 | 38 | } |
39 | 39 | |
40 | 40 | public function login() { |
41 | | - global $wgSeleniumTestsWikiUser, $wgSeleniumTestsWikiPassword, $wgSeleniumTestsWikiUrl; |
| 41 | + global $wgSeleniumTestsWikiUser, $wgSeleniumTestsWikiPassword, $wgSeleniumTestsWikiUrl, $wgVersion; |
42 | 42 | |
43 | 43 | $this->open( $wgSeleniumTestsWikiUrl . '/index.php?title=Special:Userlogin' ); |
44 | 44 | $this->type( 'wpName1', $wgSeleniumTestsWikiUser ); |
45 | 45 | $this->type( 'wpPassword1', $wgSeleniumTestsWikiPassword ); |
46 | | - $this->click( "//input[@id='wpLoginAttempt']" ); |
| 46 | + if (version_compare($wgVersion, '1.15.2', '>=')) { |
| 47 | + $this->click( "//input[@id='wpLoginAttempt']" ); |
| 48 | + } else { |
| 49 | + $this->click( "//input[@id='wpLoginattempt']" ); |
| 50 | + } |
47 | 51 | $value = $this->doCommand( 'assertTitle', array( 'Login successful*' ) ); |
48 | 52 | } |
49 | 53 | |