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
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)
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.
Hello @Shashankpuli ,
I was facing similar problem for upload attachment. Please check below post for solution.
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.