def setUp(self): self.verificationErrors = [] self.speclenium_client = speclenium_client(self.host, 4444, self.command, self.base_url) self.speclenium_client.start() self.speclenium_client.set_timeout(30000) self.speclenium_client.open(self.path) self._check_revision() self.speclenium_client.window_maximize()
def get_acc_tree(profile_name,host, command, url): parsed = urlparse(url) first_half = parsed[0] + '://' + parsed[1] second_half = ''.join(parsed[2:]) s = speclenium_client(host, 4444, command, first_half) s.start() s.set_timeout(30000) s.open(second_half) s.window_maximize() x = s.get_accessible_doc() s.stop() return parseString('<tree><title>%s</title>%s</tree>' % (profile_name, x.encode('utf-8')))