使用selenium三种方式打开文件:
时间:2019-12-22 21:04:18
收藏:0
阅读:124
#路径读取方式一:
# b.get(r"C:\我的代码\selenium自动化测试\test.html")
#路径读取方式二:
# b.get("C:\\我的代码\\selenium自动化测试\\test.html")
#路径读取方式三:
b.get(‘file://C:\\我的代码\\selenium自动化测试\\test.html‘)
原文:https://www.cnblogs.com/zhang-da/p/12080680.html
评论(0)