How to start Edge browser in Incognito mode using selenium remote webdriver?

后端 未结 1 1026
野的像风
野的像风 2021-01-22 19:34

Currently we are working on selenium (2.53.0) with Edge browser using C#. Edge browser stores cache information at \'localAppdata\' folder because of cache, we are facing some

相关标签:
1条回答
  • 2021-01-22 20:08

    if you want to open Edge in Private (Incognito) mode, you can use this C# code:

    EdgeOptions options = new EdgeOptions();
    options.AddAdditionalCapability("InPrivate", true);
    this.edgeDriver = new EdgeDriver(options);
    
    0 讨论(0)
提交回复
热议问题