提交 35f86d05 编写于 作者: 泰斯特Test's avatar 泰斯特Test

fix bug

上级 857f3ccf
...@@ -5,7 +5,7 @@ with open("README.md", "r") as fh: ...@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup( setuptools.setup(
name="violent-webdriver", name="violent-webdriver",
version="1.0.16", version="1.0.17",
author="Yuyi Shao", author="Yuyi Shao",
author_email="523314409@qq.com", author_email="523314409@qq.com",
description="violent webdriver based on selenium", description="violent webdriver based on selenium",
......
...@@ -39,7 +39,6 @@ class violent_chromedriver(webdriver.Chrome): ...@@ -39,7 +39,6 @@ class violent_chromedriver(webdriver.Chrome):
mobile_emulation = { mobile_emulation = {
"deviceMetrics": {"width": 360, "height": 640, "pixelRatio": 3.0}, "deviceMetrics": {"width": 360, "height": 640, "pixelRatio": 3.0},
"userAgent": "Mozilla/5.0 (Linux; Android 4.2.1; en-us; Nexus 5 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19"} "userAgent": "Mozilla/5.0 (Linux; Android 4.2.1; en-us; Nexus 5 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19"}
chrome_options = Options()
chrome_options.add_argument('disable-infobars') chrome_options.add_argument('disable-infobars')
chrome_options.add_experimental_option("mobileEmulation", mobile_emulation) chrome_options.add_experimental_option("mobileEmulation", mobile_emulation)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册