Get text from accidentally focused field in table after refresh

Hello,

I would like to know is there chance to get text from accidentally focused field.
For example focus is not on same position when I refresh page so I want to catch value from position when I get focus after refresh ?

Thank you
Stevica

image

Hi,

First use “Get Attribute” Activity and use the parameter “Has focus” and check whether you are getting true or not for the focused field.

If the above step is success then you can try this, you have to go line by line(Get the selector of first line and make the selector dynamic so for the 2nd line it select the 2nd line) and check whether its focused or not, if its not focused go for next line and when its focused you have to extract text.