I am using the following code into the Invoke code activity:
Dim click as Uipath.core.activities.click
Dim clickInvoker as WorkflowInvoker
click = New Uipath.Core.Activities.Click()
click.Target.Selector = “mySelector”
click.clicktype = clicktype.CLICK_SINGLE
clickInvoker = New workflowinvoker(click)
Error that I am getting: Object reference not set to an instance of an object
After trying many times I realized that the problem is with the command clickInvoker.Invoke() because it seems that it requires some parameters that I thought were given with the selector and click type. Actually this code was made based on a solution define by @vvaidya in the following post: How to invoke other activities inside “Invoke Code” activity. However, I am getting the error above and I went through the whole post in this forum and I did not find anything that gives me a clue what the problem is.
Could someone explain to me how can I achieve to click in one element by using Invoke code?.
Thanks in advance