Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试通过自动化代码打开隐身/私人窗口 Chrome。我正在使用 C# 和 Testproject ro 运行我的代码。这里有没有人有这方面的经验,可以向我解释我能做什么?太感谢了
试试这个,做一个新工作,然后点击“Set Driver Desired Capabilities”(第 5 个按钮),然后确保在参数中传递“--incognito”,如下所示:
{ "browserName": "chrome", "version": 83, "goog:chromeOptions": { "args": [ "--incognito" ] } }