I need to configure xpath or css for selection under red border i.e a name contains "Patient List"
2 Answers
I know that you asked for either XPath of CSS but do not forget if you are using selenium webdriver you could also use linkText and partialLinkText.
Here is a Java example of find by "linkText" then click:
driver.findElement(By.linkText("Patient List")).click();
Or you could also use "partialLinkText" then click:
driver.findElement(By.partialLinkText("Patient List")).click();
This should be quite simple with xpath:
//li[@class='open']//a[text()='Patient List']
html
snippet instead of image.