While using For Each GetText : UiElement is no longer valid

Hi there,

I am try to click each pagination and get its Text to click next page.

but doing this method error is occur… GetText : UiElement is no longer valid…

What i using is just Find Children > For Each > Get Text > Click

image


image

Any idea??

Click and Get Text 1, 2 is work but after that 3 isn’t work

Hi @Peace_Maker ,

use log message to print the selector
item.Selector.ToString().

after throw error check the selector using uiexplorer and cross check

image

else use above button

Regards,
Arivu

@Peace_Maker

Why dont you use the next icon which looks like > in the ui …

That way you can navugate to any number of pages

Cheers

@Peace_Maker

Try this with modern activities It will work because all modern activities for each element it will take anchor as well with selector.

Thanks
Varun

@arivu96 @Anil_G
That button on this site go to next 10 page so not work

@Peace_Maker

Then either you can use for each ui element activity…to make clicks on each numbers…

Alternately…can you share the selector you are using

Make sure except the aaname or innertext remaining attributes should be constant…use ui explorer

Cheers

@varunk
Modern activities?? u means latest update of activities??
well… i can’t update by myself its DMZ network

@Anil_G
I change it to Google Version ( coz screenshot is Local Messager )
but still have same issue.

Test.zip (92.9 KB)

@Peace_Maker

You can check above activities panel we have one filter icon click on it & select modern option you will get latest options.

If you are not able to see modern option in UiPath then in the same flow use bit delay based on application response & check it will work

Thanks
Varun