Skip to content

Commit

Permalink
Add comments for the future
Browse files Browse the repository at this point in the history
  • Loading branch information
NoxModule committed May 31, 2021
1 parent 9224bdf commit 5f3e078
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ private static RemoteWebDriver OpenBrowserToPlexApp(string[] args)
var currentWorkingPath = Directory.GetCurrentDirectory();
var options = new EdgeOptions();
options.UseChromium = true;

// Disable infobar "Chrome is being controlled by automated test software".
options.AddExcludedArgument("enable-automation");
options.AddAdditionalOption("useAutomationExtension", false);

options.AddArguments(
$"user-data-dir={currentWorkingPath}\\User Data",
"profile-directory=Profile 1",
Expand All @@ -61,6 +64,7 @@ private static void MainProgramLoop(RemoteWebDriver driver)
// Waiting for Skip Intro button...
skipIntroButton = (RemoteWebElement)waitDriver.Until(webDriver =>
{
// Check if web browser window exists by getting window's position.
_ = driver.Manage().Window.Position;

return webDriver.FindElement(By.XPath(skipIntroButtonXPath));
Expand Down

0 comments on commit 5f3e078

Please sign in to comment.