0
I am creating a robot to log into a page, mark a checkbox and download an export file. However I am not able to run checked in a checkbox. I am using Selenium Webdriver with Firefoxdriver with the method via Xpath:
IWebDriver driver = new FirefoxDriver();
driver.Url = "";
driver.Manage().Window.Maximize();
driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(20);
driver.FindElement(By.XPath
("//div[@class='d-flex flex-row']//input[@type='checkbox']")).Click();
gives some error or just click?
– Lucas Miranda
@Lucasmiranda just don’t click!
– Evandro
Have you tried clicking
span
or in thesvg
? This has happened to me, when I can’t click directly oninput
of acheckbox
I try to click the element on top of it– Tmilitino
@Tmilitino I’m not very familiar with fitting xPath properly! Using the above example you could show me how xPath would look to click on span or svg?
– Evandro