util.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:micromasters 作者: mitodl 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号