In my application, i want to assert a webelement name which is inside li tag.But i am unable to locate the same.
Below is the image of HTML code.I am unable to copy paste the code hence attaching the image.
The code which i tried is:
IWebElement result = driver.FindElement(By.XPath("//li[@id='licredit-ResultDisplay']/a/b"));
Assert.AreEqual(result.Text, "ESTIMATE RESULTS");
Console.WriteLine("Estimate Result validated successfully");
But i am getting no such element error.So kindly suggest any suitable way to locate the element to assert the name-ESTIMATE RESULTS.
Aucun commentaire:
Enregistrer un commentaire