-
Notifications
You must be signed in to change notification settings - Fork 765
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1851 from emanlove/print-page-as-pdf-1824
Added `Print Page As PDF` Keyword
- Loading branch information
Showing
3 changed files
with
127 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
*** Settings *** | ||
Documentation Suite description | ||
Suite Setup Go To Page "non_ascii.html" | ||
Resource ../resource.robot | ||
Test Setup Remove Files ${OUTPUTDIR}/selenium-page-*.pdf | ||
*** Test Cases *** | ||
Print Page As PDF Without Print Options | ||
Print Page As PDF | ||
Verify Index Increments With Multiple Prints | ||
[Setup] Remove Files ${OUTPUTDIR}/selenium-page-*.pdf | ||
${file_1} = Print Page As PDF background=${True} scale=${2} | ||
Should Be Equal ${file_1} ${OUTPUTDIR}${/}selenium-page-1.pdf | ||
${file_2} = Print Page As PDF orientation=landscape | ||
Should Be Equal ${file_2} ${OUTPUTDIR}${/}selenium-page-2.pdf | ||
Go To https://robotframework.org/foundation/ | ||
${file_3} = Print Page As PDF shrink_to_fit=${True} page_height=${35.56} page_width=${21.59} | ||
Should Be Equal ${file_3} ${OUTPUTDIR}${/}selenium-page-3.pdf | ||
Print With Full Options | ||
Print Page As PDF page_ranges=['1'] background=${False} shrink_to_fit=${False} orientation=portrait | ||
... margin_top=${0.5} margin_left=${1.5} margin_bottom=${0.5} margin_right=${1.5} | ||
... page_height=${35.56} page_width=${21.59} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters