selenium.webdriver.common.print_page_options

Classes

PrintOptions()
class selenium.webdriver.common.print_page_options.PrintOptions[source]
ORIENTATION_VALUES = ['portrait', 'landscape']
background
Returns:Background value that was set
margin_bottom
Returns:Bottom margin of the page
margin_left
Returns:Left margin of the page
margin_right
Returns:Right margin of the page
margin_top
Returns:Top margin of the page
orientation
Returns:Orientation that was set for the page
page_height
Returns:Page height that was set
page_ranges
Returns:value set for pageRanges
page_width
Returns:Page width that was set
scale
Returns:Scale that was set for the page
shrink_to_fit
Returns:Value set for shrinkToFit
to_dict() → Dict[str, Any][source]
Returns:A hash of print options configured