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

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
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (17,651)