I am trying to create a desktop flow to read from an excel sheet on my local machine and enter it on various screens of a web app.
It was working fine yesterday but today i keep getting the following error:
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)
If i update the UI Element it will work fine but then I will get the error at another point in the flow.
Any help, advice, tips will be greatly appreciated.
Hi,
I guess, it related to your UI element so that it can process for Item A but could not process for Iteam B. You should look at your UI element again and make sure it can handle all items from your excel data. Because when the UI element is captured, it always includes a Web Page title (it depends on item is processing), x-path is also different for each item (like html element Id, css class, etc.)
In that cases, you have to use regular expression in your UI element or using operator like: Contains, starts with, ... to handle different items.
Thanks and hope it can help you.
Mike
---------------------------------
Did I answer your question? Please consider to Mark my post as a solution! to guide others
eetuRobo
11
Super User 2025 Season 1
KO-05050229-0
4
John_Mavridis
4
Microsoft Employee