我想将Selenium代码转换为可执行文件,我使用了auto-py- to -exe,它对非Selenium代码总是有效的,所以我不知道该怎么做。我正在看这里提供的答案:Create a Python executable with chromedriver & Selenium,但它不能确切地解决我的问题,因为您需要更改.spec文件并添加您的Chromedriver路径,但我不使用chromdriver,我使用webdriver</
我是编程新手,大约两个月前就开始使用Python了,我正在复习斯威加特的Automate the Boring with Python text。我正在使用Spyder 3,并且已经安装了selenium模块和Firefox浏览器。我在python文件中使用了以下代码 from selenium import webdriverbrowser.get(
我正在尝试通过MacOS上的PyCharm CE运行Selenium,并尝试在Google Chrome上运行它。但是,每当我运行以下命令时:
browser = webdriver.Chrome("/Users/louiscage/PycharmProjectsDeprecationWarning: executable_path has been deprecated, please pass in a Servic