I have a solutions for handling 'print' dialog. But all solutions work with firefox, but not work with chrome.
I have two solutions 1. using AutoIT tool 2. Robot class
i.e Robot r = new Robot();
r.keyPress(KeyEvent.VK_ESCAPE);
r.keyRelease(KeyEvent.VK_ESCAPE);
When i ran above code, 'print' dialog exit in ff, but not in chrome
Reason: Selenium will execute steps after page load finishing. when i click 'print' dialog in chrome it the previous page shows always loading mark as shown in attached files.
I want to handle 'print' dialog in chrome browser.
Please find the attached screen shot for more information on my issue.