Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98894

Handle Print Preview window using selenium in chrome latest version

$
0
0

I'm trying to work with a Print Dialog box in google chrome version 75.0.3770.80. I am clicking on cancel button on print dialog using Selenium to close it.

Print Dialog box

The cancel button can be inspected and its selectors are visible on the UI but when I am trying to click on those selectors using selenium it is given No such element exception.

Inspecting Cancel button

Also, when I am using getSource() for that page button selectors are not present in the source code but are visible on UI

So, how can we click on cancel button is there any way to do this?.


Viewing all articles
Browse latest Browse all 98894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>