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
- Eric_Zhang9 years ago
Microsoft Employee
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