Hi everyone,
I'm currently trying to scrape tender data from a website, but I ran into an issue when trying to extract information that appears in a new tab (popup page).
Problem:
I have successfully created a sitemap to go through pagination and click on each tender title on the main list. However, when the link is clicked, it opens in a new tab, and whenever I try to create a child selector to extract data like "Kode Tender" from that page, the scraping fails — possibly due to the new tab being blocked or inaccessible from the scraper.
Example detail page that opens in a new tab:
https://lpse.kemkes.go.id/eproc4/lelang/47576047/pengumumanlelang
Sitemap:
{"_id":"LPSE2","startUrl":["https://lpse.kemkes.go.id/eproc4/lelang?kategoriId=&tahun=2024&instansiId=&rekanan=&kontrak_status=&kontrak_tipe="],"selectors":[{"clickActionType":"real","clickElementSelector":".next a","clickElementUniquenessType":"uniqueText","clickType":"clickMore","delay":2000,"discardInitialElements":"discard-when-click-element-exists","id":"page","multiple":true,"parentSelectors":["_root"],"selector":"td p a","type":"SelectorElementClick"},{"id":"link","linkType":"linkFromHref","multiple":false,"parentSelectors":["page"],"selector":"parent","type":"SelectorLink"},{"clickActionType":"real","clickElementSelector":"parent","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":2000,"discardInitialElements":"discard-when-click-element-exists","id":"Buka Link","multiple":true,"parentSelectors":["page"],"selector":"parent","type":"SelectorElementClick"}]}