Nested react components

In the highlighted line, based on id='this react tab number' data-automation= tab-value>"this value changes"</div

Please help me to fetch this number.

@rounak Hi, are you looking to get the number - 621,513?

If so - it should be possible to be done by using the following selector: li[id*="react-tabs"] div[data-automation="tab-value"]

Yes, Which selector type should I use?

@rounak A 'Text' selector should work!

No, this is react-tab-56 , but I also need the numbers for 57, 58 ,59 and so on

@rounak Understood, so try to use the approximate ID's with the 'Grouped' selector - li[id*="react-tabs-5"] div[data-automation="tab-value"]

1 Like