I have case where I need to click on a print icon in an application and that pops up a print window in Chrome.
I would like to confirm that his occured.
I have the following code
Scenario:
Given driver 'appURL'
* waitFor('#printIcon')
And click('#printIcon')
Then match text('.action-button') contains 'Save'
However it doesn't take the print page elements and I get a failure.
Is there a way to switch to the print modal?
Thank you,
Yes, the print dialog may be OS specific, which means it is not controllable by the test-automation. Sorry, this is a case where I'd like the community to do the research and figure out what the options are.
Note that you can do some research into Karate Robot if that helps :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.