No nonsense, go directly to the topic, this time demonstrates how to start Chrome, and specify the default profile
Download Chromedriver
Address: http://chromedriver.storage.googleapis.com/index.html?path=2.33/
Special Note: Look Notes.txt Note the version number must match Ah, if the chromedriver version and your Chrome version does not match it may not start!!!!!
Actual combat code
( can run code please follow the public number, then in the public number to reply "Test help Diary" to get, not in this article reply Ah )
From selenium import Webdriver
650) this.width=650; "Src=" https://mmbiz.qpic.cn/mmbiz_png/ icgsknubvvjgqquia2z2xgybsuexdyjgftkoos8zhfwiabvyckhwjxw9wdh9w35vtsnl5w4adegtkwibrg0kbpyv9a/640?wx_fmt=png& Tp=webp&wxfrom=5&wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 640?wx_fmt=png &tp=webp&wxfrom=5&wx_lazy= "/>
Two-dimensional code QQ Group Two-dimensional code
650) this.width=650; "height=" "width=" src= "https://mmbiz.qpic.cn/mmbiz_jpg/" Icgsknubvvjiagphla6gudk074wi1kk5kv9jfmhicbktxgiby7oickfruqg4qd3a7nlxicpg4lmi3bftvopnu61tz6g/640?wx_fmt=jpeg &tp=webp&wxfrom=5&wx_lazy=1 "style=" margin:0px;padding:0px;height:auto;width:140px; "alt=" 640?wx_fmt =jpeg&tp=webp&wxfrom=5&wx_lazy "/> 650) this.width=650;" height= "134" width= "134" src= "https:// mmbiz.qpic.cn/mmbiz_png/ icgsknubvvjgbcgym2dloxpbuicrzh136to9tuyjiclmtoh69ctgxb1ibqs9aqhp7g4gnxxs4xb2afvnia56pcjwtq/640?wx_fmt=png& Tp=webp&wxfrom=5&wx_lazy=1 "style=" MARGIN:0PX;PADDING:0PX;HEIGHT:AUTO;WIDTH:134PX; "alt=" 640?wx_fmt=png &tp=webp&wxfrom=5&wx_lazy= "/>
This article is from the "Cockroach Performance automation test brand" blog, please be sure to keep this source http://xqtesting.blog.51cto.com/4626073/1976078
Python selenium webdriver How to start the Chrome browser