The general idea is to extract DOM using Selenium packages.

Specifically, the objective is to extract the value of **`max`** which reside in the class `pagination__input hide-phone` as shown below

```
<div class="pagination__input hide-phone">
   <input type="number" name="page" max="12" value="1">
</div>

```

The website is accessible from this [link](https://www.freepik.com/search?dates=any&format=search&page=1&query=Polygonal%20Human&sort=popular).

To achieve this, the following code were drafted.

```
maxPage = self.browser.find_elements_by_css_selector( "[class='pagination__input hide-phone']" )
valueMax=maxPage.get_attribute( 'max' )

```

However, the following error was thrown.

```
AttributeError: 'list' object has no attribute 'get_attribute'

```

May I know what is the problem.
Thanks in advance.

**Edit 2** 

As suggested by @Kunduk.

As per @Kunduk, the following line has been tailor accordingly. Specifically, add the `self.`

```
print( WebDriverWait( self.browser, 10 ).until( EC.visibility_of_element_located(
    (By.CSS_SELECTOR, "div.pagination__input.hide-phone>input[name='page']") ) ).get_attribute( "max" ) )

```

However, I got the following error

[![enter image description here](https://i.stack.imgur.com/TH5DQ.png)](https://i.stack.imgur.com/TH5DQ.png)

**Edit 1:**

As suggested by @Josh

```
pages = self.browser.find_elements_by_css_selector( "[class='pagination__input hide-phone']" )
maxPages = [page for page in pages if page.get_attribute('max')]

```

However, it return the result of `[]`,also as shown by the figure below:

[![enter image description here](https://i.stack.imgur.com/Ls5za.png)](https://i.stack.imgur.com/Ls5za.png)