My page object contains different element with findsby attribute
[FindsBy(How = How.Id, Using = "hotelid")]
public IWebElement hotelreference;
[FindsBy(How = How.CssSelector, Using = "label[for='hotelname']")]
public IWebElement hotelname;
have another function which take IWebElement
public void waitForAjaxRequest(IWebElement element)
{
//if there is no ajax request
element.Click()
}
but before clicking the element want to verify if element is exist. How can I verify if element exist because in page element we use different locator to find by element