How to locate a specific number and click it to go to another page?

Hey Guys,

When I read the number in the first column of the Google sheet and then type it into the search, there will be multiple messages exists, Can someone advise how to locate a specific number and click it to go to another page? Please note the specific number is varying according to the data in the Sheet. Thanks.

Example:

@Evelyn_Lu,

  1. Get a reliable selector which contains the specific number.
  2. Modify the selector to use specific number in the selector

which activity to update the selector?

@Evelyn_Lu,

You will have to make click activity selector dynamic with variable in it

Hi @ashokkarale,

Have a nice day. firstly the container nubmer is vary changed according to Rowdata in sheet. Then I click search the it on the web, it will exist multiple workItems. I need to use click activity to match the specific container number of work items. Can you help to write the variable in the slector.

Container number is read from “CurrentRow(0).ToString”

Example 1:


Example 2:

Hey Guys,

When I read the number in the first column of the Google sheet and then type it into the search, there will be multiple messages exists, Can someone advise how to locate a specific container number of WorkItem and click it to go to another page? Can you help to write the variable in the slector?
Please note the specific container number is is vary changed according to Rowdata in sheet. Thanks.

Condition: Type into: Container number is read from “CurrentRow(0).ToString”

Example1:

Example 2:


@Evelyn_Lu,

Declare a string datatype variable and assign CurrentRow(0).ToString to it like this.

strId = CurrentRow(0).ToString

Replace the highlighted part with variable strId

1 Like

@ashokkarale , I tried to add a assign activity, and replace the highlighted part with variable strID, but still failed.
Assign:
save to strID=Value to save to CurrentRow(“Container number”).ToString()

then the error is: Validation can not be performed if the current selection is invalid

@ashokkarale ,

I used the another classic click activity, and edit selector but it also notify me that right click to add variable/arguments in selector. Only string and integer values supported.

@Evelyn_Lu,

Assign a default value to strID in variables panel. This will help you in design time to validate the selector.

Hi, based on the screenshots you’ve provided, I can see the static text “input empty container return for” is available for all the datarows so, you can use it and just make the container number part as dynamic as given below, also make sure to validate if other attributes such as class remains the same for all data rows.

<webctrl aaname='Input Empty Container Return for **strContainerNo**' />

You have directly given the variable name as text inside the aaname attribute, that’s why it’s not working. Try right clicking on the strID keyword in your selector and now, UiPath will ask you to enter the variable name and this is where you select your variable strID.

Thank you so much @monsieurrahul @ashokkarale , the issue is fixed already.
I use ctrl+k to give variable for strID in selector.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.