I am using Selenium IWebDriver to open multiple web sites in chrome. I have add button in my .Net application's UI and when I enter website address and click on Add button it should open in the Chrome browser.
For me, First web site opens in a tab and works properly but when I enter second address and click on Add button new tab is opening but website is not loading. Below is the code I have used in my add button.
ChromeDriverService chromeService = ChromeDriverService.CreateDefaultService();
ChromeOptions options = new ChromeOptions();
IWebDriver webDriver = new ChromeDriver(chromeService, options);
webDriver.Navigate().GoToUrl(websiteAddress);
Can someone help me to identify the issue in my code?