helper.py 文件源码

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

项目:TestRewrite 作者: osqa-interns 项目源码 文件源码
def goto_course_list(self):
        """Go to the course picker."""
        long_wait = WebDriverWait(self.driver, 30)
        try:
            long_wait.until(
                expect.presence_of_element_located(
                    (By.ID, 'ox-react-root-container')
                )
            )
            if 'tutor' in self.current_url():
                self.find(By.CSS_SELECTOR, '.ui-brand-logo').click()
                self.page.wait_for_page_load()
            else:
                raise HTTPError('Not currently on an OpenStax Tutor webpage:' +
                                '%s' % self.current_url())
        except Exception as ex:
            raise ex
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号