Data Table Extract not working

I am trying to extract data table from two quotes:

For quote - 1. [Q-20233] the selector is as follows:

For another Quote- 1. [Q-30173]


the selector is as follows :

How to make these two selectors of Data Table dynamic:

There is no idx in first data table . how to make it dynamic selector for the data table

Hi @dutta.marina

Remove the idx from the second selector and try running the code.

Regards

@dutta.marina,

What part of the selector is changing. Dynamic selector we build when we have some text or property in selector changes as per record or something.

Are you using Table extraction? where are you using these selectors?

Thanks,
Ashok :slight_smile:

@ashokkarale

I am using Table extraction and when I used the table extraction its working for the quote [Q-20233] and in the next transaction when the quote becomes [Q-30173] the table extraction is not working . When I checked the selectors of both I saw the differences .

@dutta.marina,

Ok, got it. Have you tried removing the idx=‘2’?

Also you can open Ui Explorer and highlight the table you are trying to extract. This will show you more parameter to build a reliable and strong selector. You can share the Ui Explorer screenshot if any help required.

Thanks,
Ashok :slight_smile:

@ashokkarale

If I try to remove the idx=2 it does not highlight second table

@ashokkarale

There are two different tables . one is idx=2 and one without idx. If i remove idx it doesn’t work for other table


Hi @dutta.marina

Can you send the screenshot of the UiExplorer so that it might give the better idea regarding the selectors.

Regards

@dutta.marina,

Please share Ui Explorer screenshots when both tables selected respectively. I want to check what are the other properties of the table we can use to identify the tables.

Thanks,
Ashok :slight_smile:

@dutta.marina

quick question…here you have two tables or one?

if only one…then each time you reload the page is idx increasing?

if multiple tables then use idx or for each ui element

cheers

@Anil_G

I have two tables . For transaction 1 the table has selector without idx . for the next transaction when its extracting the Data Table, there is idx. If I remove the idx the other data table extraction fails

@dutta.marina

If there is no idx that means the idx is 1 by default…just to confirm for third transaction is the idx 3?

If ao use idx and icrement for each transaction

Cheers

@Anil_G

yes for some extraction idx=3 is also there

@dutta.marina

As mentioned if idx is increasing for each transaction just use a variable and incrmenet

If that is not the case them we need to find another attribute which is unique to your target table…and get that…may be selecting a intermediate row in the ui explorer center top window will help…check the same to restrict the selector to the tab you need

Cheers

1 Like

@Anil_G

are u available now for 10 minutes call?

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