Problem with Activity- GET TEXT

Hello,

I am try to extract a line from a List View of SAP.

So, I am looking to extract the line containing the information [1 von 401 ].
My selector selects the text but it always runs into error.

I added the activity in Check state app as well as added the delay but nothing works.
Any suggestions to make it work?

@parnalmahavir.patni

you need only one single field or a full row?

in both cases using table scop activity in sap can help better

cheers

I dont need the table. I just need the header to see if there is a match or not. At the end i just need to know if there is atleast 1 entry for the selection.
Here, I am trying to read the text from Get text and then I search if there is “1 von” in the text. If match i go forward.


I changed the selector to * as the numbers are dynmaic. I hope it will work.

@parnalmahavir.patni

Is this getting validated?

also if 1 Von is what is to be checked and if that is coming in selected instead of get text …directly using selector and check app state it can be validated as th selector gets valid only if the required text you need is present

cheers

Hi @parnalmahavir.patni

This happens because the UI element is dynamic / not stable, even though the selector looks correct.

  1. Use Get Full Text on the page or panel

  2. Apply regex:

\[\d+\s+von\s+\d+\]

Check out this thread

1 Like

You should be using Check App State, not Get Text.

You can directly use check app state, indicate the text where you are looking at. This way you can get this info.

Also, do you consider you will multiple rows in this table ? Then we may have tweak the logic based on the row number .