Text Exists activity not detecting text which I can see

Hello and thank you,

I have a text string “Update Activity” which I am seeking in a drop down on a website. Sometimes the text is there and sometimes it is not. When it is there I need to click on it and continue. When it is not I need to execute another action. I am using a Text Exists activity but it is not seeing the text which I can see. How do I fix this?

Thank you in advance

Hi @gameplayer13905

Did you try to use Element Exists activity?
If the string do not display in your screen when you indicate it, you can use F2 key to delay before selecting.

2 Likes

Please check source code of that page, how’s your text displayed in html code?
Example, if your html source is Update < b > Activity < / b > then robot cannot found it

2 Likes

@doanh - Thank you, how do I see that?

@wusiyangjia - Thank you
The issue may be that the option I want is not the first one. It is twelfth one. I believe I’ve tried Element Exists but I’ll try again. I really need something to which I can tie a variable and then run it through an If statement
1

1 Like

@wusiyangjia or anyone
So I’ve changed to using a click activity and then an Element Exists activity and I’m encountering problems. I think the issue is with the selector but I don’t know how to use selectors. I read about using innertext so I am trying that. Here is what I am seeing
This is for the Click activity
1


This is what I’m seeing for the Element Exists activity
4 5 6
I don’t know what is right and what is wrong. Please help me to fix this

1 Like

There are two possible reasons

  1. If the drop down list is appearing after clicking the advanced search, you will not be able to validate the selector.
  2. Attached browser window title name and this update search window title name are different . So its not able to validate the selector.
1 Like

@Sriharisai_Vasi - Thank you

Here are my answers to your post

  1. In the past I’ve been able to successfully click on the advanced search and then navigate to the “Update Activity” using a Type Into activity. The problem now is that sometimes “Update Activity” is there and sometimes it isn’t and I need to take an action for each case. How do I get this to work?
  2. I’m not sure I understand how to fix this one

@gameplayer13905 Did u try using get children activity for that dropdown. Then loop through children attributes and check if Update Activity exists in the children

@Sriharisai_Vasi - I did try find children but I couldn’t figure out how to use it and the person helping me stopped responding

Main.xaml (6.9 KB)

Try and see what it prints in the consol output

@Sriharisai_Vasi
Thank you for this. I am getting a validation error as follows. What goes there?