In C# Selenium, after clicking on a button a print preview popup will appear as in the attached image. In case of failure this will not appear and I will use the page elements to find that the test case is failed.
Now in the success scenario, I need to check whether a print preview popup is appeared or not. If YES i need to click on CANCEL button in that print preview popup and verify the page content which is behind the popup. Unfortunately Selenium doesn't identifies the content behind the popup until the popup appears..
Can anyone help me out to solve this problem in C# Selenium.