i wants to automatically load the url and get the control of signin button and pass the value to the text using c# in visual studio.i have tried using htmlagilitypack for getting the control and for passing the values in a textbox, i have used selenium webdriver. iam able to load the url and not able to get the control of signin button and not able to pass the value in textbox. could someone help me in this case i was stuck with past one week.i have attached the sample code i have tried.
var uri = "https://developer.servicenow.com";
var psi = new System.Diagnostics.ProcessStartInfo();
psi.UseShellExecute = true;
psi.FileName = uri;
System.Diagnostics.Process.Start(psi);
var func = string.Format(@"document.getElementsByClass('dps-button-label').innerText = '{0}';",itext);
IWebDriver driver = new EdgeDriver();
IWebElement element = driver.FindElement(By.Name("form-control input-box username-box"));
element.SendKeys("anon@user ");