cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shashankpuli
Helper II
Helper II

click link on web page or press button on wegpage commands are not working

Hi experts,

 

Im getting following message when I use click link on web page or press button on wegpage commands . Im using web browser instance in command. Im trying click on below element.. Any Suggestions 

Shashankpuli_0-1618419015749.png  

Shashankpuli_1-1618419140103.png

 

 

Error message 

Robin.Core.ActionException: Click link on web page failed. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Robin.Modules.WebAutomation.Actions.WebAutomationRuntime.ClickLinkOnWebPage(WebBrowserInstanceVariant webBrowserInstanceVariant, TextVariant cssSelectorForLinkElement, Boolean waitForPageToLoad, TextVariant dialogButtonToPress, WebPageCourseOfActionIfDialogAppearsEnum courseOfActionIfDialogAppears)
at Robin.Modules.WebAutomation.Actions.WebAutomationActions.ClickLinkOnWebPage(Variant webBrowserInstance, Variant cssSelectorOfElementToClick, Variant dialogButtonToPress, Boolean waitForPageToLoad, Int32 courseOfActionIfDialogAppears)
--- End of inner exception stack trace ---
at Robin.Modules.WebAutomation.Actions.ClickBase.Execute(ActionContext context)
at Robin.Runtime.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement)

2 REPLIES 2
fraenK
Memorable Member
Memorable Member

Seems like the button wasn't found. You'll need to test and probably edit the button selector, maybe something is dynamically changing every time you load the site. 

Pratik6
Frequent Visitor

Hello @Shashankpuli ,

 

I was facing similar problem for upload attachment. Please check below post for solution.

https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Upload-attachment-in-D365FO-using-web-rec...

 

Also if button is not found then as mentioned by @fraenK, in button selector, select name instead of id. (ids can have dynamic values). I also selected id but with 'start with' operator.

Pratik6_0-1618732003452.png

 

 

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,115)