helper.py 文件源码

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

项目:test-automation 作者: openstax 项目源码 文件源码
def goto_performance_forecast(self):
        """Access the performance forecast page."""
        print('Enter: goto_performance_forecast')
        self.goto_menu_item('Performance Forecast')
        timer = 0
        while timer < 10:
            try:
                print('Wait for forecast load try %s of 10' % (timer + 1))
                self.wait.until(
                    expect.visibility_of_element_located(
                        (By.CLASS_NAME, 'guide-container')
                    )
                )
                timer = 10
            except:
                timer = timer + 1
        print('Exit: goto_performance_forecast')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号