currentWindow()->maximize(); $this->currentWindow()->size( [ 'width' => $this->width, 'height' => $this->height ] ); } function testUILanguage() { $user = 'demoadmin2'; $pass = 'demo.de'; $this->goToLogin( $user ); $this->changeLanguageLogin( 'es' ); sleep( 5 ); //Sleep not ideal but waits for language to change. $this->assertEquals( 'Logueo Seguro', $this->byId( 'secure-login-text' )->text() ); $this->Login( $user, $pass ); $this->waitForUIInitComplete(); $this->assertEquals( 'Panel de control', $this->byId( 'main-menu-link-home' )->text() ); $this->changeLanguagePreference( 'en' ); $this->waitForUIInitComplete(); $this->assertEquals( 'Dashboard', $this->byId( 'main-menu-link-home' )->text() ); $this->changeLanguagePreference( 'es' ); $this->waitForUIInitComplete(); $this->assertEquals( 'Panel de control', $this->byId( 'main-menu-link-home' )->text() ); $this->changeLanguagePreference( 'en' ); $this->waitForUIInitComplete(); $this->assertEquals( 'Dashboard', $this->byId( 'main-menu-link-home' )->text() ); } } ?>