Ubuntu Pastebin

Paste from Brendan at Fri, 5 Jun 2015 13:17:21 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
class TestGeolocation(StartOpenRemotePageTestCaseBase):

    def setUp(self):
        super(TestGeolocation, self).setUp()
        url = self.base_url + "/geolocation"
        self.main_window.go_to_url(url)
        self.main_window.wait_until_page_loaded(url)
        self.dialog = self.main_window.get_geolocation_dialog()

    def tearDown(self):
        self.dialog.wait_until_destroyed()
        super(TestGeolocation, self).tearDown()

    def test_geolocation_deny(self):
        self.pointing_device.click_object(self.dialog.get_deny_button())

    def test_geolocation_accept(self):
        self.pointing_device.click_object(self.dialog.get_allow_button())
Download as text