To click on an element which contains class and alt in selenium python.

A webpage contains certain folders with unique name, I want to click on folder by specifying their name or title. Below is the html tag, I tried many ways but I am ending up with errors.

```
<div class="folder">
<p>
<a alt="ABC" title="ABC">ABC</a>
</p>
</div>

```

Initially it used to work with below

```
driver.find_element_by_xpath("//a[@title='ABC']").click()    

```

I get "selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element" error. Please help me solve this.

Tried below as well:

```
driver.find_element_by_xpath("//div[@class='folder']//a[@title='ABC']").click()

```

The above is also not working. Please request to guide me further.