dubravcik / pbixrefresher-python

Refresh Power BI reports programmatically for free
MIT License
122 stars 54 forks source link

Element Ambiguous Error when publishing #26

Closed MiConnell closed 4 years ago

MiConnell commented 4 years ago

Power BI Version: 2.75.5649.861 64-bit (November 2019) Windows 10

When getting to publishing, there's an elementambiguouserror with pywinauto that show two Publish to Power BI options.

Error and screenshot below.

pywinauto.findwindows.ElementAmbiguousError: There are 2 elements that match the criteria {'title': 'My workspace', 'top_level_only': False, 'parent': <uia_element_info.UIAElementInfo - 'Publish to Power BI', WindowsForms10.Window.20008.app.0.3c73ab4_r6_ad1, 988888>, 'backend': 'uia'}

image

jorisguichard commented 4 years ago

I have the exact same issue here...

image

jorisguichard commented 4 years ago

I think this can be fixed by adding 'found_index = 0' to line 77:

image

MiConnell commented 4 years ago

That worked, thanks!