We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b07763 commit 86a3605Copy full SHA for 86a3605
examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs
@@ -44,7 +44,12 @@ public void Arguments()
44
[TestMethod]
45
public void SetBrowserLocation()
46
{
47
+ string userDataDir = System.IO.Path.Combine(System.IO.Path.GetTempPath(), System.IO.Path.GetRandomFileName());
48
+ System.IO.Directory.CreateDirectory(userDataDir);
49
var options = new ChromeOptions();
50
+ options.AddArgument($"--user-data-dir={userDataDir}");
51
+ options.AddArgument("--no-sandbox");
52
+ options.AddArgument("--disable-dev-shm-usage");
53
54
options.BinaryLocation = GetChromeLocation();
55
0 commit comments