tests.py 文件源码

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

项目:python-web-pdb 作者: romanvm 项目源码 文件源码
def setUpClass(cls):
        if sys.platform == 'win32':
            cls.browser = webdriver.Firefox()
        else:
            options = webdriver.ChromeOptions()
            options.add_argument('headless')
            options.add_argument('disable-gpu')
            cls.browser = webdriver.Chrome(chrome_options=options)
        cls.browser.get('http://127.0.0.1:5555')
        cls.stdin = cls.browser.find_element_by_id('stdin')
        cls.send_btn = cls.browser.find_element_by_id('send_btn')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号