大家好,请告诉我如何在我的主要void中使用这种方法(检查元素是否存在),我在C#中使用selenium:public bool IsTestElementPresent(IWebDriver driver){try {driver.FindElement(By.Id(“Test”));返回真;} catch(NoSuchElementException){返回假;} }提前谢谢?