How do I confirm a pdf loaded correctly with Watir webdriver testing
- by Mike Rose
This is a general type question that I dont know what code I could post that would help get an answer. So I apologize in advance, but if some piece of code would help, please let me know and Ill add it.
The question is, how do I confirm that a pdf loaded in a web browser when using Ruby/Cucumber/Watir Webdriver? My test clicks on a random link that should load a pdf in a new browser window, so I cant check the url because it will vary with each test.
Any ideas how I can make sure the correct pdf loads after clicking the link that should load it?