Documentation
¶
Overview ¶
Package printpreview provides support for controlling Chrome print preview directly through the UI.
Index ¶
- func Print(ctx context.Context, tconn *chrome.TestConn) error
- func SelectPrinter(ctx context.Context, tconn *chrome.TestConn, printerName string) error
- func SetLayout(ctx context.Context, tconn *chrome.TestConn, layout Layout) error
- func SetPages(ctx context.Context, tconn *chrome.TestConn, pages string) error
- func WaitForPrintPreview(tconn *chrome.TestConn) uiauto.Action
- type Layout
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Print ¶
Print sets focus on the print button in Chrome print preview and injects the ENTER key to start printing. This is more reliable than clicking the print button since notifications often block it from view.
func SelectPrinter ¶
SelectPrinter interacts with Chrome print preview to select the printer with the given printerName.
func SetLayout ¶
SetLayout interacts with Chrome print preview to change the layout setting to the provided layout.
Types ¶
Click to show internal directories.
Click to hide internal directories.