我已经将我的selenium代码从windows导入到mac,并安装了chromedriver for mac和更新的系统属性accordingly.but,它抛出了异常,并显示了之前设置的路径:
/Users/Preet12/Desktop/Selenium/AddaStore/C:\Users\cp\Downloads\chromedriver_win32\chromedriver.exe
火狐不隐藏浏览器窗口或在虚拟桌面中打开它,而是使用"-headless“标志支持无头模式。using System.Text;using System.Windows.Forms;using OpenQA.Selenium.Firefox;
public partial class Form1: Form {