Checking the contents of a pdf that is opened in new browser tab

Ask general questions here.
AviatorFly
Posts: 15
Joined: Fri Sep 06, 2019 2:21 pm

Checking the contents of a pdf that is opened in new browser tab

Post by AviatorFly » Tue Jan 05, 2021 10:20 pm

Hi all,

I have an application what when I click on a generate button, it creates a pdf report on a new browser tab in Firefox.
The new tab has an url like blob:https://somesite.com/c5ef7f11-904d-4cba ... 50ce73bff0 where c5ef7f11-904d-4cba-aca1-2650ce73bff0 is a random guid.

Can anyone offer some tips on how to do this?

I suppose first step is getting Ranorex to move to the new open tab somehow.

Thanks

User avatar
Stub
Posts: 425
Joined: Fri Jul 15, 2016 1:35 pm

Re: Checking the contents of a pdf that is opened in new browser tab

Post by Stub » Wed Jan 06, 2021 8:53 am

Could you use a regular expression in your RxPath which recognises the format of the GUID but not the actual value of it?

AviatorFly
Posts: 15
Joined: Fri Sep 06, 2019 2:21 pm

Re: Checking the contents of a pdf that is opened in new browser tab

Post by AviatorFly » Thu Jan 07, 2021 9:09 pm

With the spy tool, it looks like Ranorex will only identity the entire pdf shown in the new tab of firefox. I was hoping I would see the red frame around individual items in the pdf file. Is there a way to do that?

Also I was not able to figure out how to get Ranorex to get to the tab with the pdf file. Anyone has examples on how to do that?

Thanks