Upon reaching navigate.GoToUrl("http://www.example.com/")
chromedriver.exe will stop working, but it's working when the FirefoxDriver is being used:
using (IWebDriver driver = new ChromeDriver(DRIVER_PATH))
{
// driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10));
INavigation navigate = driver.Navigate();
navigate.GoToUrl("http://www.example.com/");
}
Here's my debug.log file:
[0508/115012.911:ERROR:process_reader_win.cc(114)] NtOpenThread: {Access Denied} A process has requested access to an object, but has not been granted those access rights. (0xc0000022)
[0508/115012.912:ERROR:exception_snapshot_win.cc(87)] thread ID 7968 not found in process
[0508/115012.912:WARNING:crash_report_exception_handler.cc(60)] ProcessSnapshotWin::Initialize failed
Can anyone guess how to make it work in C#?
To work with Selenium 3.4.0 you need to have latest ChromeDriver 2.29.x from here & latest Google Chrome 58.0
I don't see any issues in your code as such.
You might need to check if navigate
have GoToUrl
method implemented or not in C#.
As in Java we do it like this:
WebDriver driver1 = new ChromeDriver(c1);
Navigation navigate = driver1.navigate();
navigate.to("https://gmail.com");
User contributions licensed under CC BY-SA 3.0