~osomon/webbrowser-app/find-in-page

« back to all changes in this revision

Viewing changes to tests/autopilot/webbrowser_app/tests/test_findinpage.py

  • Committer: Olivier Tilloy
  • Date: 2015-08-11 11:16:52 UTC
  • Revision ID: olivier.tilloy@canonical.com-20150811111652-2n9ll7anlqm5a6hg
Fix a failing autopilot test on devices.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
        bar = self.chrome.address_bar
137
137
        self.assertThat(bar.findInPageMode, Eventually(Equals(True)))
138
138
        if not self.main_window.wide:
 
139
            # Remove focus from the address bar to hide the OSK
 
140
            # (that would otherwise prevent a bottom edge swipe gesture)
 
141
            webview = self.main_window.get_current_webview()
 
142
            self.pointing_device.click_object(webview)
139
143
            self.open_tabs_view()
140
144
        self.open_new_tab()
141
145
        self.assertThat(bar.findInPageMode, Eventually(Equals(False)))