currentWindow()->maximize(); $this->currentWindow()->size( [ 'width' => $this->width, 'height' => $this->height ] ); } function testUIGetGlobalVariable() { $this->Login( 'demoadmin2', 'demo.de' ); $javascript = [ 'script' => 'return Global.getUIReadyStatus();', 'args' => [] ]; $var = $this->execute( $javascript ); Debug::text( 'Global variable 1 retrieved: ' . print_r( $var, true ), __FILE__, __LINE__, __METHOD__, 10 ); $this->waitForUIInitComplete(); $this->clickMainMenuItem( 'Attendance' ); $this->clickMainMenuItem( 'TimeSheet' ); $this->waitForUIInitComplete(); $javascript = [ 'script' => 'return Global.UIReadyStatus;', 'args' => [] ]; $var2 = $this->execute( $javascript ); Debug::text( 'Global variable 2 retrieved: ' . print_r( $var, true ), __FILE__, __LINE__, __METHOD__, 10 ); $this->assertNotEmpty( $var ); $this->assertNotEmpty( $var2 ); $this->Logout(); } } ?>