I am trying to select the Save as PDF
option fron the print pop-up of windows. For which I have used AutoItLibrary
along with Robot Framework
. My code is as below but I am unable to click the Destination
dropdown of the print pop-up. Please help me what can be wrong here. Is it Intermediate D3D Window
value which is wrong? I got this Class
value from the AutoIt v3 window info tool
. Please guide also if any alternate solution.
<code>*** Settings ***
Library AutoItLibrary
Library AutoItLibrary
print_try
open browser https://wcmshelp.ucsc.edu/advanced/print-button.html browser=Chrome
Maximize Browser Window
click element //button[.='Print this page']
Sleep 30s
Win Wait Active Creating a Print Button
Win Activate Creating a Print Button
Control Focus Creating a Print Button ${EMPTY} Intermediate D3D Window
Control Click Creating a Print Button ${EMPTY} Intermediate D3D Window Left
Sleep 10s
</code>
<code>*** Settings ***
Library AutoItLibrary
Library AutoItLibrary
print_try
open browser https://wcmshelp.ucsc.edu/advanced/print-button.html browser=Chrome
Maximize Browser Window
click element //button[.='Print this page']
Sleep 30s
Win Wait Active Creating a Print Button
Win Activate Creating a Print Button
Control Focus Creating a Print Button ${EMPTY} Intermediate D3D Window
Control Click Creating a Print Button ${EMPTY} Intermediate D3D Window Left
Sleep 10s
</code>
*** Settings ***
Library AutoItLibrary
Library AutoItLibrary
print_try
open browser https://wcmshelp.ucsc.edu/advanced/print-button.html browser=Chrome
Maximize Browser Window
click element //button[.='Print this page']
Sleep 30s
Win Wait Active Creating a Print Button
Win Activate Creating a Print Button
Control Focus Creating a Print Button ${EMPTY} Intermediate D3D Window
Control Click Creating a Print Button ${EMPTY} Intermediate D3D Window Left
Sleep 10s