Hi Folks,
Can Ranorex identify a dynamically created UI element which is transient.
The reason I refer it as transient is because after the innerText is created within the span element,
whenever you click anywhere on the page or do anything else, the innerText is disappeared.
I tried to use Chrome dev tool, I cannot do it either. The text simply is gone. So not any kind of tracking tool is working.
However, I think program itself should be able to identify it, right? Using Validate.Exists(repo.ItemInfo) should be ok since there is not mouse action is involved, right?
Thanks,
Betty
Identify dynamic and transient UI element
Re: Identify dynamic and transient UI element
Say the element is <span id="email-error-message" databind="text:validateEmail.errorMessage">The email already exists.</span>
the text "The email already exists." is temporary like a tool tip. if you click anywhere else, the text is gone.
the innertext could also be "The email is not valid" etc depending on the field input.
Based on what I see in Chrome web tool, I can see the path is
//span[@id='useremail-error-msg']. So it is put in the program like this
//span[@id='useremail-error-msg' and @visible='True']
Ranorex can identify it.
However I need to deal with different text message. If the xpath is
//span[@id='useremail-error-msg' and @innertex='The email already exists.' and @visible='True']
Ranorex cannot identify it.
Any idea?
the text "The email already exists." is temporary like a tool tip. if you click anywhere else, the text is gone.
the innertext could also be "The email is not valid" etc depending on the field input.
Based on what I see in Chrome web tool, I can see the path is
//span[@id='useremail-error-msg']. So it is put in the program like this
//span[@id='useremail-error-msg' and @visible='True']
Ranorex can identify it.
However I need to deal with different text message. If the xpath is
//span[@id='useremail-error-msg' and @innertex='The email already exists.' and @visible='True']
Ranorex cannot identify it.
Any idea?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Identify dynamic and transient UI element
Hello c676228,
Unfortunately, it’s very difficult to provide a solution for your issue without actually seeing it. May I ask if you could provide a small sample, which depicts the issue?
Thank you in advance.
Regards,
Robert
Unfortunately, it’s very difficult to provide a solution for your issue without actually seeing it. May I ask if you could provide a small sample, which depicts the issue?
Thank you in advance.
Regards,
Robert
Re: Identify dynamic and transient UI element
Hi Robert,
Thanks for the reply. Actually when asking something else in another thread.This question got answered in certain way. See
http://www.ranorex.com/forum/ranorex-xp ... t7931.html
Thanks for the reply. Actually when asking something else in another thread.This question got answered in certain way. See
http://www.ranorex.com/forum/ranorex-xp ... t7931.html
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Identify dynamic and transient UI element
Hi c676228,
I'm glad to hear that.
Regards,
Robert
I'm glad to hear that.
Regards,
Robert