0
My attempt with xPath or by ID was unsuccessful.
var options = new ChromeOptions();
options.AddArgument("--disable-gpu");
var chromeDriver = new ChromeDriver(options);
chromeDriver.Navigate().GoToUrl("http://radar.tntbrasil.com.br/radar/public/login");
chromeDriver.FindElementById("login").SendKeys("");
chromeDriver.FindElementById("senha").SendKeys("");
chromeDriver.FindElement(By.XPath("//*[@id=\"login\"]/a")).Click();
chromeDriver.FindElementById("login").SendKeys(Keys.Enter);
chromeDriver.Close();
Follow the images to facilitate understanding:
Good.. First the two elements should not have the same ID... but you can try to differentiate by type
– Leandro Angelo
Can you tell me how to do that? Why I forgot to tell you but my attempt at xPath was unsuccessful.
– Pedro Mapelli