Click on Active row

Hi All,

I have a scenario where there will be product names in row wise and status will be active . If the status is active the bot should click the product name shown below in screenshot.

Do I need to extract as data table and then compare using element exist if its Active and then use click activity in this case?

@dutta.marina,

That would work if your Product names are going to be unique.

  1. Extract the data
  2. Filter the datatable to have active status.
  3. Get the selector and make it dynamic to have the product name in it to Click the specific product.

Hello @dutta.marina

I would use table scraping on the table.
Then use a For each row in data table activity where you get/save the index from the properties.
Make an If activity to check for the wanted status, and then click on the row in the GUI, by using the index in your selector.

Regards
Soren

@dutta.marina

Use for each ui element with filter …indicate full row in the for each ui element…in filter use currentelement containing Active

now inside loop use a click activity with selector pass it as string as below currentitem.Selector.ToString + "<webctrl tag='TD' tableCol='1' />"

cheers

@Anil_G

if there are more rows .I mean now its one . there can be multiple rows

@dutta.marina

that is why for each ui element …it get all

cheers

@Anil_G
Is there any other activity for each ui element with filter?

@dutta.marina

once you indicate in for each you would see configure filter option

cheers

@Anil_G

Here in strict selector I need to pass currentitem.Selector.ToString + “”

@dutta.marina

please pass in thsi field

cheers

@Anil_G

Its not clicking . getting error

@dutta.marina

can you indicate only first column value and show the selector in ui explorer

or modify the last part as per that

also better use a log message and log the selector

cheers

@Anil_G

Pls find the selector of first column value.

@dutta.marina

use <webctrl tag='DIV' tablecol='2' />

cheers

1 Like

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