ChromeDriver - WebDriver for Chrome
Posted: Sun Aug 30, 2020 9:09 am
Hi,
Is there anybody to use it from harbour?
Thanks.
Is there anybody to use it from harbour?
Thanks.
www.FiveTechSoft.com
https://fivetechsoft.com/forums/
Code: Select all
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Support.UI;
namespace mySelenium
{
class Program
{
static void Main(string[] args)
{
//!Make sure to add the path to where you extracting the chromedriver.exe:
IWebDriver driver = new ChromeDriver(@"C:\WebDriver\bin"); //<-Add your path
driver.Navigate().GoToUrl("http://forums.fivetechsupport.com/viewforum.php?f=3");
// IWebElement myField = driver.FindElement(By.Id("btn red-flamingo"));
// IWebElement myField = driver.FindElement(By.ClassName("red-flamingo"));
// myField.Click();
// myField = driver.FindElement(By.Name("tridField"));
// myField.SendKeys("3333");
// myField = driver.FindElement(By.Name("egpField"));
// myField.SendKeys("4444");
// myField = driver.FindElement(By.ClassName("submitButton"));
// myField.Click();
Thread.Sleep(15000);
driver.Quit();
}
}
}