hello everyone,
I've got a Problem with mit Power Automate Desktop Workflow. In my example, I want to download a video from Microsoft Stream. To do this, I need to press two buttons on the web page. Both are not recognized in the workflow with my CSS Selector, but are recognized in the browser console.
This is the CSS Selector which I use to click on the download button:
button.drawer-item-download-button
This allows me to find the button uniquely in the Console.
This is a part of my current Workflow:
Three - four weeks ago the button could be found on the website and the workflow ran without errors.
Also I tried to execute Javascript on the web page. That doesn't work for me either, even a ConsoleLog doesn't get through. How can I get Javascript to work?
Thanks a lot for your help!
Fabian
Hi,
I know it's not the best solution but did you try for testing: Move mouse to image and left click?
Yes, I already tried that and it worked, but I don't want to be dependent on screen size or screen resolution.
Understandable.
I tried this and it's working for me.
I tried your solution, but it fails for me too. It shows the following error:
Click failed (error retrieving the UI element).
Did you customize anything within the UI element (Selector generator)?
Thanks a lot for your help!
No, I didn't make any changes.
> pane[Class="BrowserRootView"][Name="Watch 'KN (CS) - Individual Consultation Meeting Placeholder ' | Microsoft Stream - Microsoft Edge - Work"] > pane[Class="NonClientView"][Name="Microsoft Edge"] > pane[Class="GlassBrowserFrameView"] > pane[Class="BrowserView"] > pane[Class="View"]:eq(2) > pane[Class="View"] > pane[Class="View"] > document > group[Class="ms-Fabric--isFocusHidden -mouse -should -not -have -outline theme-for-videopage"] > group[Class="office-scroll-body"] > group > group[Class="other-area ng-scope"][Name="section including comments and related videos"] > group[Class="ng-isolate-scope"] > group > group:eq(0) > menu[Class="c-action-trigger c-glyph drawer-button drawer-button-stream drawer-button-without-label ng-isolate-scope"][Name="More actions"]
I tested with Edge.
I found out that the loop that calls the links is the problem. Unfortunately, I don't have a solution for it yet.
I have built the workflow like you without the loop. Here is the problem: I created the UI elements from the browser of video 1. If I call video 1 with the workflow, the workflow runs without any problems. If I call another link from for example video 2, the workflow doesn't find the UI elements anymore and fails.
I have tested it with different browsers.
Did you try adding the video1 link for the second loop section? For testing.
I replaced the link with a fixed value of Video 1 instead of using the CurrentItem from the loop.
The workflow also went through without error. By calling different videos in the loop, the UI elements can then not be found. That's why I had used CSS selector, because that should be the same on every page. But that also fails since a few weeks.