擅长:python、mysql、java
<p>首先,在从python文件路径打开的命令提示符中使用以下命令安装webdriver manager</p>
<pre><code>pip install webdriver-manager.
</code></pre>
<p>接下来打开pycharm工具,转到<code>settings -> project interpreter -></code>,单击+图标,搜索webdriver manager并安装它</p>
<p>并运行以下代码:</p>
<pre><code>from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())
</code></pre>