I am not sure why I can't locate this element, I am using selenium because the pages loads dynamically.

here is my code.

```
driver.get(singleData['itemLink'])
WebDriverWait(driver,10).until(EC.visibility_of_element_located((By.CSS_SELECTOR,"section#description")))
srce = driver.page_source
sp = BeautifulSoup(srce, 'lxml')

```

I can get its parent element like this

```
down = sp.find(id = "attachments-links")

```

but could not find its a tag present in its first div.
I tried :

```
down3 = sp.find("a", attrs={"class": "usa-button-small usa-button-gray ng-star-inserted"})
down = sp.select("#attachments-links>div.download-container-header>span>a")

```

none of them works fine and returns me [].

**I can go to the h2 tag which is just above it. like this**

```
down = sp.find(id = "attachments-links").find('div') 

```

and printing down gives me :

```
<div class="download-container-header"><h2 id="opp-view-attachments-section-title">Attachments/Links</h2><!-- --></div>

```

link: <https://beta.sam.gov/opp/8f1efc97df214010b46631c74e6a8aa0/view?keywords=&sort=-modifiedDate&index=opp&is_active=true&page=1>

your help is much appreciated.
[![enter image description here](https://i.stack.imgur.com/2cdzK.jpg)](https://i.stack.imgur.com/2cdzK.jpg)