What you want to do is easily solved with the help of Selenium . This is a powerful tool to automate the work with the browser.
Install Selenium.WebDriver , and:
using OpenQA.Selenium.Chrome; ... static void Main(string[] args) { var driver = new ChromeDriver(); driver.Url = "https://accounts.google.com/signin/v2/identifier?continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&service=mail&sacu=1&rip=1&flowName=GlifWebSignIn&flowEntry=ServiceLogin"; var inputEmail = driver.FindElementById("identifierId");//это Id инпута для ввода email inputEmail.SendKeys("user@gmail.com"); var btnNext = driver.FindElementById("identifierNext");//это Id кнопки "Далее" btnNext.Click(); ... Console.ReadLine(); }
Naturally, in order to enter text into inputs and press buttons, you first need to find them on the page with pens (having studied the page code) and understand how they can be identified programmatically. In the given example Id elements are used.
HttpClient,WebClient,HttpWebRequest. The type of application is completely unimportant. - Alexander Petrov