Scraping on a pop up web

Hello, I need to scrape a document that opens as a pop-up through an option on a portal. The problem is that the Get Text activity doesn’t find the pop-up window when executed, because it tries to extract the text from the main browser window of the portal instead of the pop-up. However, when I use the Highlight option on the Web Browser elements, it correctly identifies each one.

Hi @Diego_Medina , Welcome to the UiPath Community.
Could you please check page title attribute in selectors.
Does title attribute in selectors matching with that of PDF/POP-UP page title?

If above doesn’t solve the issue. can you please use ‘Get Attribute Activity’ or Screen Scraping using OCR

Hi @Diego_Medina
Welcome to UiPath,

this issue may occur if the pop-up is in a separate browser window or tab. try using the attach browser or attach window activity to scope the get text activity specifically to the pop-up window. this helps ui automation focus on the correct ui element context.

If you found helpful please mark as a solution. Thanks
Happy Automation with UiPath

Hey, you have few options here

  1. If the Document opens up as a pop-up in the browser , there should be an option to download it locally. Click on the download option and wait until the document gets downloaded correctly. Also the read and retrieve the data from the document (assuming it’s a .pdf file) with read pdf file activity found with package UiPath.pdf.activities.
    You can also try to open the pdf that is downloaded locally , then do a get text if you don’t want to read it with read pdf activities.
  2. if you can’t download the pdf , use attach window activity on the new pop up window that opens up for the document and within that use Activate activity , then try to do a get text.

Let me know how it goes :wink:

Are you nesting Use Application/Browser?
I see you used anchor on element containing text PAPELETA RECEPTION TERMINAL - does this text appear on main page?

@Diego_Medina,

To interact with popup windows, use another Use application/browser activity and indicate the pop-up window.

Inside this scope add your Get text activity.

1 Like


HI. The “Use Browser” activity for the portal and the one for the pop-up document both correctly highlight their respective pages when using the Highlight option. However, when I try to edit the target of the Get Text activity, it defaults to the first “Use Browser” (the portal) instead of the second one (the pop-up document). I also tried using the Activate activity, but it didn’t work either.


HI. The “Use Browser” activity for the portal and the one for the pop-up document both correctly highlight their respective pages. However, when I try to edit the target of the Get Text activity, it automatically redirects to the first “Use Browser” (the portal) instead of the second one (the pop-up document).
I tried using the Activate activity, but that didn’t work either. I also tested with the Get Attribute activity and the Screen Scraping Wizard, but neither was successful.

in ‘Use Application - Browser Activity’ can u please try selecting

**Window attach mode as ‘Single Window’ from properties Panel.

are you not able to download the file ?

Hi Rajiv, Unfortunately, it doesn’t let me download it as a PDF.

Hey Diego , can you try using Attach Browser activity and indicate the popped up pdf screen , then go and use an activate activity inside of attach browser to ensure that the control is at the pdf window and then proceed with the scraping.

Please try to use the Attach Browser/window activity.