import pytest
from selenium import webdriver
@pytest.fixture()
def test_dakaibaidu():
driver = webdriver.Chrome()
yield driver
driver.quit()
class Test_DK():
def test_baidu(self,test_dakaibaidu):
test_dakaibaidu.get("https:///www.baidu.com")
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/244607.html