How to click on an element? I'm using C# - XUnit

Tell me how I can click on an element when I use C# - XUnit.

Hello Dipen,

You can refer and add the sample code below to click on an element in C#- XUnit:

 // Example: Click on Second Check box
 IWebElement secondCheckBox = driver.FindElement(By.Name("li2"));
 secondCheckBox.Click();