~canonical-platform-qa/ubuntu-system-tests/pull_to_refresh_video_scope

« back to all changes in this revision

Viewing changes to ubuntu_system_tests/tests/test_with_webbrowser.py

replace is_element() with one from autopilot.

Approved by Richard Huddie, platform-qa-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import os.path
24
24
 
25
25
from autopilot import exceptions
 
26
from autopilot import introspection
26
27
from autopilot.matchers import Eventually
27
28
from testtools.matchers import Equals
28
29
 
29
 
from ubuntu_system_tests.helpers import autopilot
30
30
from ubuntu_system_tests.helpers.data import load_test_metadata
31
31
from ubuntu_system_tests.helpers import file_system as fs
32
32
from ubuntu_system_tests.helpers import gallery
245
245
    def _assert_find_in_page_item_not_visible_in_drawer(self):
246
246
        """Open the drawer and ensure 'Find in page' item is not visible."""
247
247
        self.browser.open_drawer()
248
 
        self.assertFalse(autopilot.is_element(
 
248
        self.assertFalse(introspection.is_element(
249
249
            self.browser.chrome.get_drawer_action, 'findinpage'))
250
250
 
251
251
    def test_find_in_page_invisible_new_tabs_view(self):