Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
StanS
Frequent Visitor

how to bypass popup in power bi web source

Hi everyone,

I need to get data from a web site. But before you get to a page with data you have a popup window there.
When you enter the page it asks you to confirm you are older than 19 (need to click a checkbox and click a button).
Is there a way to make Power Bi do that?

 

Thank you!

1 ACCEPTED SOLUTION

@StanS start blank query in Advanced editor and paste following scripts, it is showing table1

 

let
    Source = Web.BrowserContents("https://www.cannabis-nb.com/search/"),
    #"Extracted Table From Html" = Html.Table(Source, {{"Column1", ".cnb-product-name"}, {"Column2", ".productTile"}, {"Column3", ".cnb-product-price + *"}, {"Column4", ".cnb-product-format"}, {"Column5", ".cnb-product-price"}, {"Column6", "SPAN:nth-child(1) *"}, {"Column7", ".col-sm-6:nth-child(2) .cnb-product-occasion:nth-child(1)"}, {"Column8", ".col-sm-6:nth-child(2) .cnb-product-info:nth-child(6)"}, {"Column9", ".col-sm-6:nth-child(2) .cnb-product-info:nth-child(7)"}, {"Column10", ".col-xs-12:nth-child(3) .cnb-product-occasion:nth-child(1)"}, {"Column11", ".col-xs-12:nth-child(3) .cnb-product-info:nth-child(6)"}, {"Column12", ".col-xs-12:nth-child(3) .cnb-product-info:nth-child(7)"}, {"Column13", ".col-xs-12:nth-child(4) .cnb-product-occasion:nth-child(1)"}, {"Column14", ".col-xs-12:nth-child(4) .cnb-product-info:nth-child(6)"}, {"Column15", ".col-xs-12:nth-child(4) .cnb-product-info:nth-child(7)"}, {"Column16", ".product-tile-promotion-label"}}, [RowSelector=".cnb-product"]),
    #"Changed Type" = Table.TransformColumnTypes(#"Extracted Table From Html",{{"Column1", type text}, {"Column2", Int64.Type}, {"Column3", type text}, {"Column4", type text}, {"Column5", type text}, {"Column6", type text}, {"Column7", type text}, {"Column8", type text}, {"Column9", type text}, {"Column10", type text}, {"Column11", type text}, {"Column12", type text}, {"Column13", type text}, {"Column14", type text}, {"Column15", type text}, {"Column16", type text}})
in
    #"Changed Type"

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hello @StanS ,

What website is it that you are trying to "Scrape" the data from? In my experience to extract the data from sites like that the popup doesn't do much besides hiding the rest of the page. The HTML code is still visible.

 

Kind regards
Joren Venema

Data & Analytics Consultant
If this reply solved your question be sure to mark this post as the solution to help others find the answer more easily. 

Hello @Anonymous Jore. The website is https://www.cannabis-nb.com/search/

 

Thank you

@StanS start blank query in Advanced editor and paste following scripts, it is showing table1

 

let
    Source = Web.BrowserContents("https://www.cannabis-nb.com/search/"),
    #"Extracted Table From Html" = Html.Table(Source, {{"Column1", ".cnb-product-name"}, {"Column2", ".productTile"}, {"Column3", ".cnb-product-price + *"}, {"Column4", ".cnb-product-format"}, {"Column5", ".cnb-product-price"}, {"Column6", "SPAN:nth-child(1) *"}, {"Column7", ".col-sm-6:nth-child(2) .cnb-product-occasion:nth-child(1)"}, {"Column8", ".col-sm-6:nth-child(2) .cnb-product-info:nth-child(6)"}, {"Column9", ".col-sm-6:nth-child(2) .cnb-product-info:nth-child(7)"}, {"Column10", ".col-xs-12:nth-child(3) .cnb-product-occasion:nth-child(1)"}, {"Column11", ".col-xs-12:nth-child(3) .cnb-product-info:nth-child(6)"}, {"Column12", ".col-xs-12:nth-child(3) .cnb-product-info:nth-child(7)"}, {"Column13", ".col-xs-12:nth-child(4) .cnb-product-occasion:nth-child(1)"}, {"Column14", ".col-xs-12:nth-child(4) .cnb-product-info:nth-child(6)"}, {"Column15", ".col-xs-12:nth-child(4) .cnb-product-info:nth-child(7)"}, {"Column16", ".product-tile-promotion-label"}}, [RowSelector=".cnb-product"]),
    #"Changed Type" = Table.TransformColumnTypes(#"Extracted Table From Html",{{"Column1", type text}, {"Column2", Int64.Type}, {"Column3", type text}, {"Column4", type text}, {"Column5", type text}, {"Column6", type text}, {"Column7", type text}, {"Column8", type text}, {"Column9", type text}, {"Column10", type text}, {"Column11", type text}, {"Column12", type text}, {"Column13", type text}, {"Column14", type text}, {"Column15", type text}, {"Column16", type text}})
in
    #"Changed Type"

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

StanS
Frequent Visitor

Thank you @parry2k  I wonder how did you do that. It didn't show me any tables when I tried to add that web page source

Anonymous
Not applicable

Hello @StanS ,

When connecting to the source via the Web connector it shows me 4 tables aswell:

bb73c67b3582e0a254de056c88e941d4

This should pop up for you aswell?

What are you trying to obtain from the website?

The front page only shows the first 20 results.

If there is anything else you need help with don't hesitate to ask.

 

Kind regards
Joren Venema

Data & Analytics Consultant

@StanS there are four tables, whch table you want



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@StanS I'm not aware if there is anything in Power BI that automate clicking of check box.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.