@alecxe - I have edited the code. But, I still get errors. Thanks very much for your help.
=========================================================================
I have done this several times before and it has worked. But for some reason, it is not working. I am using Microsoft Visual Studio 2015 (Community Edition - if that helps. I have downloaded the necessary libraries and added the required dependencies in MS/Visual Studio. I have also added a picture of the error list.
Here is the code:
using OpenQA.Selenium.Firefox;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using System.Threading.Tasks;
namespace CV_Library_P.OM_09_2017
{
class Valid_Username_Valid_Password
{
//Instantiate Firefox Driver
var driver = new FirefoxDriver();
FirefoxDriver.Navigate().GoToUrl("https://www.cv-library.co.uk/candidate/login");
//Enter User Name - Email Address
var user = driver.FindElement(By.Id("cand-login-left"));
user.SendKeys("[email protected]");
//Enter Password - Account Pasword
var pass = driver.FindElement(By.Id("cand-login-left"));
pass.SendKeys("p@55word123!");
//Click on Login button
driver.FindElement(By.Id("cand-login-left")).Click();