-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed as not planned
Closed as not planned
Copy link
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-dotnet.NET Bindings.NET BindingsD-chromeI-defectSomething is not working as intendedSomething is not working as intendedI-regressionSomething was working but we "fixed" itSomething was working but we "fixed" itOS-windows
Description
Description
Getting timeout error when try to connect in a chrome session started with specific port.
I guess the ChromeDriver constructor is not correctly using the port sent in the DebuggerAddress option.
Reproducible Code
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using System.Diagnostics;
namespace My.GettingStarted;
public static class FirstScript
{
public static void Main()
{
var startInfo = new ProcessStartInfo
{
FileName = @"C:\Program Files\Google\Chrome\Application\chrome.exe",
//Arguments = $"/incognito {url} --remote-debugging-port={debuggingPort} --start-maximized",
Arguments = @"https://google.com --remote-debugging-port=9510 --start-maximized",
UseShellExecute = true,
};
Process.Start(startInfo);
ChromeOptions options = new();
string hostDriver = "localhost";
options.DebuggerAddress = @$"{hostDriver}:9520";
// The error occurs on the next line.
IWebDriver driver = new ChromeDriver(options);
driver.FindElement(By.XPath(@"//textarea[@aria-label='Pesquisar']")).SendKeys("Felipe Sant Ana Parreira");
}
}ℹ️ Last known working version: 4.25.0
Metadata
Metadata
Assignees
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-dotnet.NET Bindings.NET BindingsD-chromeI-defectSomething is not working as intendedSomething is not working as intendedI-regressionSomething was working but we "fixed" itSomething was working but we "fixed" itOS-windows