selenium.webdriver.common.print_page_options

Classes

PrintOptions()

class selenium.webdriver.common.print_page_options.PrintOptions[source]
ORIENTATION_VALUES = ['portrait', 'landscape']
to_dict() Dict[str, Any][source]
Returns:

A hash of print options configured

property orientation: Optional[str]
Returns:

Orientation that was set for the page

property scale: Optional[float]
Returns:

Scale that was set for the page

property background: Optional[bool]
Returns:

Background value that was set

property page_width: Optional[float]
Returns:

Page width that was set

property page_height: Optional[float]
Returns:

Page height that was set

property margin_top: Optional[float]
Returns:

Top margin of the page

property margin_left: Optional[float]
Returns:

Left margin of the page

property margin_bottom: Optional[float]
Returns:

Bottom margin of the page

property margin_right: Optional[float]
Returns:

Right margin of the page

property shrink_to_fit: Optional[bool]
Returns:

Value set for shrinkToFit

property page_ranges: Optional[List[str]]
Returns:

value set for pageRanges