Forum Discussion
Clicking on a PowerBi Dashboard reports with Selenium
- 9 years ago
Ok, I found the solution, it was because it was in a frame and i had to switch to this frame before getting anything.
Browser.WebDriver.SwitchTo().Frame(myFrame);
Hope it will be helpful to someone
Hello there,
I am doing some automatic testing using selenium and I have a Page with some PowerBI widgets. When the widget is not embedded in the html code (I can get Id of the widget like <div id="ReviewPositioning" class="e-datavisualization-chart e-js" .... ), I success to find one object in this widget (for example a point in a Chart) but when it is embedded like a report (several widgets with "Focus mode" or "Export Data" possible), In the html I see only div classes but very few Ids and i cant find anything with the other Bys (selector, tagname, classname, or even XPath), nothing is working !!
Does anyone have some advice for me?
Thanks in advance
Guillaume
According to your description, the question seems how Selenium can get the html elements of Embedded Power BI reports. I suggest you post the question in the dedicated Selenium forum and you will get better response there.
- VitoC9 years agoNew Member
Thanks for your answer, ill try on Selenium forum. So frustrating I can get some of the widgets but not the embedded ones...
- VitoC9 years agoNew Member
Ok, I found the solution, it was because it was in a frame and i had to switch to this frame before getting anything.
Browser.WebDriver.SwitchTo().Frame(myFrame);
Hope it will be helpful to someone
- Anonymous4 years agoNot applicable
I'm with the same proble, but I didn't understand how you did it. Which version of selenium you are using? How did you identify which dataframe you need to access?