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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Brad_Seibert
New Member

Automating Power BI from Selinium log into power bi

Hey all,

I am trying to automate dadhboard testing using Selinium (Gradle and java).  I was able to log directly in (after just entering my email) about 2 weeks ago, but now it is sending me to the Fabric Free pages (sometimes it is "sign in" to get fabric free, and sometimes it is "get started".  But either way I am running into issues with the buttons - I have tried about 40 permutations of the locators but nothing is working - even more frustrating is when I manually select the buttons ("sign in" takes me to "get started" and "get started" starts the process of asking for my email address again - in a new tab - pressung the new "Get Started button finally re-directs me to the dashboard.  I need help either 1 - finding a locator that will work with Gradle, or 2 - just getting straight to my dashboard (which is obviously preferred)

1 ACCEPTED SOLUTION

Ok so I stumbled on a not great solution- if I try to load a de-published report I can wait for 30 seconds the. Redirect to the report I want - it is allowing me to directly access the report.  I will look into using the APi for validation when I complete my POC and circle back

View solution in original post

3 REPLIES 3
v-yohua-msft
Community Support
Community Support

Hi, @Brad_Seibert 

 

Since you prefer direct access to Power BI dashboards, I recommend using the Power BI REST API for authentication and navigation in your automation scripts


First, you'll need to authenticate and get an access token, and once you've passed the authentication, you can use the Power BI REST API to list dashboards and retrieve the specific dashboard you want to test. For more information, you can view the following documents:

 

Embed Power BI content in an embedded analytics application with service principal and an applicatio...

 

Dashboards - REST API (Power BI Power BI REST APIs) | Microsoft Learn

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ok so I stumbled on a not great solution- if I try to load a de-published report I can wait for 30 seconds the. Redirect to the report I want - it is allowing me to directly access the report.  I will look into using the APi for validation when I complete my POC and circle back

Brad_Seibert
New Member

I did neglect to mention that when I manually launch the web browser and open power bi - it takes me directly to the dashboard - without entering anything

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.