V4.6
This commit is contained in:
@@ -106,8 +106,6 @@ namespace AiQ_GUI
|
||||
// Initialises and opens a ChromeDriver with specific options
|
||||
public static ChromeDriver OpenDriver()
|
||||
{
|
||||
string tempProfile = null;
|
||||
|
||||
try
|
||||
{
|
||||
ChromeOptions options = new();
|
||||
@@ -121,7 +119,7 @@ namespace AiQ_GUI
|
||||
"--disable-features=BrowserAddPersonFeature,InterestFeedContentSuggestions");
|
||||
|
||||
// Use a unique temporary profile to avoid conflicts
|
||||
tempProfile = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
|
||||
string tempProfile = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
|
||||
options.AddArguments($"--user-data-dir={tempProfile}");
|
||||
|
||||
// manual driver path
|
||||
|
||||
Reference in New Issue
Block a user