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

Unable to access the print button through selenium webdriver as it is within shadow-root

$
0
0

enter image description hereThere is a scenario that I am trying to automate through selenium webdriver (Java) and facing trouble. Print preview is not accessible through selenium as it is within shadow-root. Our task is to download the pdf files from web portals. When we clicked on print button on web, print preview window is opened and we need to click on save button in this print preview window in order to download the pdf. And also linked the URLs of the solutions that I have tried to solve this problem. for screenshot enter image description here

https://www.seleniumeasy.com/selenium-tutorials/accessing-shadow-dom-elements-with-webdriverHow to interact with the elements within #shadow-root (open) while Clearing Browsing Data of Chrome Browser using cssSelectorHandle Print Preview window using selenium in chrome latest versionHow can I tell Selenium to press cancel on a print popup?Selenium how to click Ctrl + pHow to click on the print button on a web page using Selenium


Viewing all articles
Browse latest Browse all 98486

Latest Images

Trending Articles



Latest Images

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