cfme.web_ui.paginator module

A set of functions for dealing with the paginator controls.

cfme.web_ui.paginator.check_all()[source]

Returns the Check All locator.

cfme.web_ui.paginator.click_element(el)[source]

Advance the page until the given element is displayed, and click it

cfme.web_ui.paginator.find(pred)[source]

Advance the pages until pred (a no-arg function) is true.

cfme.web_ui.paginator.find_element(el)[source]

Advance the pages until the given element is displayed

cfme.web_ui.paginator.first()[source]

Returns the First button locator.

cfme.web_ui.paginator.last()[source]

Returns the Last button locator.

cfme.web_ui.paginator.next()[source]

Returns the Next button locator.

cfme.web_ui.paginator.page_controls_exist()[source]

Simple check to see if page controls exist.

cfme.web_ui.paginator.pages()[source]

A generator to facilitate looping over pages

Usage:

for page in pages():
    # Do seleniumy things here, like finding and clicking elements
cfme.web_ui.paginator.previous()[source]

Returns the Previous button locator.

cfme.web_ui.paginator.rec_end()[source]

Returns the record set index.

cfme.web_ui.paginator.rec_offset()[source]

Returns the first record offset.

cfme.web_ui.paginator.rec_total()[source]

Returns the total number of records.

cfme.web_ui.paginator.reset()[source]

Reset the paginator to the first page or do nothing if no pages

cfme.web_ui.paginator.results_per_page(num)[source]

Changes the number of results on a page.

Parameters:num – Number of results per page
cfme.web_ui.paginator.sort_by(sort)[source]

Changes the sort by field.

Parameters:sort – Value to sort by (visible text in select box)