使用selenium三种方式打开文件:

#路径读取方式一:
# b.get(r"C:我的代码selenium自动化测试 est.html")
#路径读取方式二:
# b.get("C:\我的代码\selenium自动化测试\test.html")
#路径读取方式三:
b.get('file://C:\我的代码\selenium自动化测试\test.html')
原文地址:https://www.cnblogs.com/zhang-da/p/12080680.html