In this article, We will learn how to open a browser and run a URL using Web Scraping.
First, create a console project and will install three NuGet packages which are required for Web Scrapping.
Selenium.Support
Selenium.WebDriver
Selenium.WebDriver.ChromeDriver
using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using System; namespace WebScrapping { class Program { static void Main(string[] args) { try { ChromeDriver driver = new ChromeDriver(@"D:\Parth Mandaliya\WenScrapping\WenScrapping\Driver"); // add your chromedriver.exe path here driver.Manage().Window.Maximize(); driver.Navigate().GoToUrl("http://staging.thecodehubs.com/"); driver.FindElement(By.Id("menu-item-13558")).Click(); } catch (Exception ex) { } } } }
Hope you guys found something useful. Please give your valuable feedback and If you have any queries about this article then you can ask me in the comment section.
Also, check http://staging.thecodehubs.com/how-to-install-kioware-client-and-setup/
In this article, we have to show Create and Used PIPE in angular
In this article, we have to show Create and Used PIPE in angular
In this article, we have to show Create and Used PIPE in angular