Following a tutorial here.
Code is as follows...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenQA.Selenium;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Support.UI;
namespace mySelenium
{
class Program
{
static void Main(string[] args)
{
IWebDriver driver = new InternetExplorerDriver(@"C:\Downloads\selenium");
driver.Navigate().GoToUrl("https://www.google.co.uk/");
}
}
}
When I run the code all seems to go well, an instance of internet explorer starts and it tries to navigate to google, except I get the message...
This page can’t be displayed
•Make sure the web address https://www.google.co.uk is correct.
•Look for the page with your search engine.
•Refresh the page in a few minutes.
IE works fine when I run it manually.
Anyone had this before can offer any help?