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())