Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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!
Solved! Go to 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.
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.
@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.
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
Hello @StanS ,
When connecting to the source via the Web connector it shows me 4 tables aswell:
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.
@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.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
83 | |
42 | |
30 | |
27 | |
27 |