Fix For Microsoft Forms Button Click Failed In Power Automate Desktop

In this blog, I have given the solution for an issue we face while using Microsoft Power Automate Desktop in Microsoft Forms. 

Problem

Both Web and Window button click does not work and it throws the below error.

Failed to press button (failed to get window)

Failed to press button (failed to get window): Robin.Core.ActionException: Failed to press button (failed to get window) ---> Robin.Shared.Runtime.ActionException: Failed to press button (failed to get window)
at Robin.Modules.UIAutomation.Actions.UIUtils.TryFuncThrowExceptionIfNull[T](Func`1 func, ActionException ae)
--- End of inner exception stack trace ---
at Robin.Modules.UIAutomation.Actions.PressWindowButton.Execute(ActionContext context)
at Robin.Runtime.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement)

Solution

It is a workaround instead of using the button click actions. We can use the "Send Keys" when the cursor is in the last control of the form and next is to click on the submit button as shown below,

Fix For Microsoft Forms Button Click Failed In Power Automate Desktop