def get(self, relative_url, ignore_errors=False):
"""
Tells the browser to navigate to a relative URL (e.g.: '/learners') and makes sure there were
no console errors during page load.
"""
url = make_absolute_url(relative_url, self.live_server_url)
self.driver.get(url)
self.wait_until_loaded(By.TAG_NAME, 'body')
if not ignore_errors:
self.assert_no_console_errors()
else:
self.dump_console_logs()
评论列表
文章目录