Tagged: Find Element by XPath

C# – Find Element by XPath in Selenium

The below code can be used to detect any element on a WebPage by XPath  using Selenium in C# WebDriver.FindElementByXPath(“//input[@id=’login’]”).Click(); //Code when there is Custom function int WaitTime=10; WebDriver.FindElement(By.XPath(“//input[@id=’login’]”),WaitTime).Click(); If there is a custom...