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?
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.
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
@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
@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
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?
@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