Hi there,
I wish to get some help.
I am trying to automate printing to PDF of Statement of Account. I am stuck at the new print dialog window. The Robocode Lab has the last task running, in waiting for the print operation to complete.
The attached is the screen capture and the output rst code.
Thanks,
Yew
Screenshot_2020-09-11_21-52-22|650x500
… code::
*** Settings ***
Documentation An example robot. Wave Account Access
Library RPA.Browser
Library RPA.Excel.Files
Library RPA.FileSystem
Library RPA.HTTP
Library RPA.PDF
… code::
*** Keywords ***
Open The Wave Customer Statement URL
Open Available Browser https://my.waveapps.com/login/?next=%2Fb3ec9290-2f2d-4e78-be62-00222ea08c1e%2Fcustomer-statements&service=next
… code::
*** Keywords ***
Log In
Input Text username XXXXXXXXXX
Input Password password XXXXXXXXXX
Submit Form
Wait Until Page Contains Element class:wv-form-field
… code::
*** Keywords ***
Download The Excel file
#Download from Mobile App TinyWebService
#Download http://192.168.1.181:8080//Download/mscustomers.xlsx overwrite=True
… code::
*** Keywords ***
Fill The Form Using The Data From The Excel File
Open Workbook mscustomers.xlsx
${customers}= Read Worksheet As Table header=True
Close Workbook
[Arguments] ${customer}
FOR ${customer} IN @{customers}
Fill And Submit The Form For One Customer ${customer}
END
… code::
*** Keywords ***
Open The Excel File
Open Workbook mscustomers.xlsx
${customer}= Read Worksheet As Table header=True
Close Workbook
… code::
*** Tasks ***
Click on dropdown menu element
Click Element When Visible CSS=.wv-select__label
… code::
*** Tasks ***
Select customer from dropdown menu
#Click Element When Visible CSS=.wv-select__menu__option
Input Text CSS=.wv-input dbs
Click Element CSS=.wv-select__menu__option.is-active
… code::
*** Tasks ***
Click on Create Statement Button
Click Element CSS:.wv-button--primary
#Wait Until Page Contains Element CSS=.wv-text--strong
#Capture Page Screenshot
… code::
*** Tasks ***
Click on More Action Button
Click Element CSS:.wv-dropdown__toggle
… code::
*** Tasks ***
Select Print from Dropdown Menu
Click Element CSS:.wv-dropdown__menu__link.print-link
… code::
*** Tasks ***
Print Menu
Go To chrome://print
… code::
*** Tasks ***
Retrieve the AR data for the month and export it as a PDF
#Open The Wave Customer Statement URL
#Log In
Fill The Form Using The Data From The Excel File