Unable to open Edge in InPrivate mode using selenium web driver

Multi tool use
Multi tool use


Unable to open Edge in InPrivate mode using selenium web driver



From the C# object model, it looks like this should do the trick, but the UseInPrivateBrowsing property has no effect at my end. Just opens a regular browser session in the edge.


var options = new EdgeOptions();
options.UseInPrivateBrowsing = true;
var driver = new EdgeDriver(options);



I am using the latest Selenium.WebDriver.MicrosoftDriver.



These are the installed packages:


<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnit" version="3.10.1" targetFramework="net47" />
<package id="NUnit3TestAdapter" version="3.10.0" targetFramework="net47" />
<package id="Selenium.Chrome.WebDriver" version="2.40" targetFramework="net47" />
<package id="Selenium.Support" version="3.13.0" targetFramework="net47" />
<package id="Selenium.WebDriver" version="3.13.0" targetFramework="net47" />
<package id="Selenium.WebDriver.MicrosoftDriver" version="17.17134.0" targetFramework="net47" />
</packages>



How is this supposed to be done?





Which language do you use? JavaScript?
– Andrei Suvorkov
Jun 30 at 7:03





Using C# for this.
– Oddleif
Jun 30 at 7:09




1 Answer
1



The UseInPrivateBrowsing property will only work for versions of the driver for Microsoft Edge that support the W3C WebDriver Specification. Unfortunately, these versions of the driver are only available in Windows Insider builds at the moment. Once a version of the driver is released to widely available versions of Windows 10, this property will work everywhere for Edge.


UseInPrivateBrowsing






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

YB9Wwpa,imUJUI5 BNAvBKG,lAdjSQHUikl9r e,YhU
kIVLB2Q54vm qcGcLqPtPgnL9,1BvOx jD5kNSE6LoCQMfcV f S7LE Ueau9RVBHTsz81yLBs ogmZaiYOn,0N

Popular posts from this blog

Delphi Android file open failure with API 26

.

Amasya