PaginationInfo
AgentQL's Page
's get_pagination_info()
method returns the PaginationInfo
class. PaginationInfo
provides access to the pagination availability and the ability to navigate to the next page.
The following example queries for pagination information, checks if there is a next page, and navigates to the next page if possible.
Methods
navigate_to_next_page
Navigates to the next page.
Usage
python
pagination_info = page.get_pagination_info()
pagination_info.navigate_to_next_page()
Returns
Always check if there is a next page before navigating to it by using the has_next_page
property.
Properties
has_next_page
Detects if there is a next page.
Usage
python
pagination_info = page.get_pagination_info()
if pagination_info.has_next_page:
pagination_info.navigate_to_next_page()