As showing in the picture below
I am not able to click in a element which has div class and text
i have tried using contains text and preceding.
private IWebElement Claimcontact_Insured_No =>
FindElement(By.XPath("//div[contains(text(),'No')]/preceding::div[@class='mat-button-toggle-label-content']"));
I get the result: Unable to find the element