I am trying to test a link that is supposed to bring up a pdf in a new tab, but I cant figure out how to confirm this pdf loads correctly. There are no elements on the page to confirm, since its a pdf. I cant confirm the url, because the link I am clicking in the test is random, so I will never know what link it actually clicked on.
Is there a way to confirm a pdf loaded, or does anyone know a way I could confirm the link is doing what it is supposed to?