def RunNavigateSteps(self, action_runner): if self.wpr_mode != wpr_modes.WPR_REPLAY: google_login.NewLoginGoogleAccount(action_runner, 'googletest') super(GmailPinchZoom2018Page, self).RunNavigateSteps(action_runner) action_runner.WaitForJavaScriptCondition( 'window.gmonkey !== undefined &&' 'document.getElementById("gb") !== null')
def RunNavigateSteps(self, action_runner): google_login.NewLoginGoogleAccount(action_runner, 'googletest') super(GmailMouseScroll2018Page, self).RunNavigateSteps(action_runner) action_runner.WaitForJavaScriptCondition( 'window.gmonkey !== undefined &&' 'document.getElementById("gb") !== null') # This check is needed for gmonkey to load completely. action_runner.WaitForJavaScriptCondition( 'document.readyState == "complete"')
def RunNavigateSteps(self, action_runner): google_login.NewLoginGoogleAccount(action_runner, 'googletest') super(GoogleCalendar2018SmoothPage, self).RunNavigateSteps(action_runner) action_runner.WaitForElement('span[class~="sm8sCf"]') action_runner.ExecuteJavaScript(""" (function() { var elem = document.createElement('meta'); elem.name='viewport'; elem.content='initial-scale=1'; document.body.appendChild(elem); })();""") action_runner.Wait(1)
def _Login(self, action_runner): google_login.NewLoginGoogleAccount(action_runner, 'googletest') # Navigating to http://mail.google.com immediately leads to an infinite # redirection loop due to a bug in WPR (see # https://bugs.chromium.org/p/chromium/issues/detail?id=1036791). We # therefore first navigate to a dummy sub-URL to set up the session and # hit the resulting redirection loop. Afterwards, we can safely navigate # to http://mail.google.com. action_runner.tab.WaitForDocumentReadyStateToBeComplete() action_runner.Navigate( 'https://mail.google.com/mail/mu/mp/872/trigger_redirection_loop') action_runner.tab.WaitForDocumentReadyStateToBeComplete()
def RunNavigateSteps(self, action_runner): google_login.NewLoginGoogleAccount(action_runner, 'googletest') super(Gmail2018SmoothPage, self).RunNavigateSteps(action_runner) action_runner.WaitForJavaScriptCondition( 'window.gmonkey !== undefined &&' 'document.getElementById("gb") !== null')
def RunNavigateSteps(self, action_runner): google_login.NewLoginGoogleAccount(action_runner, 'googletest') super(GoogleCalendarPinchZoom2018Page, self).RunNavigateSteps(action_runner) action_runner.WaitForElement('span[class~="sm8sCf"]')
def _Login(self, action_runner): google_login.NewLoginGoogleAccount(action_runner, 'googletest')
def _Login(self, action_runner): google_login.NewLoginGoogleAccount(action_runner, 'chatfeature') action_runner.tab.WaitForDocumentReadyStateToBeComplete()