Page 1 of 1

Identify dynamic and transient UI element

Posted: Wed May 06, 2015 6:51 pm
by c676228
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

Re: Identify dynamic and transient UI element

Posted: Thu May 07, 2015 12:22 am
by c676228
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?

Re: Identify dynamic and transient UI element

Posted: Fri May 08, 2015 9:31 am
by Support Team
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

Re: Identify dynamic and transient UI element

Posted: Sat May 09, 2015 12:38 am
by c676228
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

Re: Identify dynamic and transient UI element

Posted: Mon May 11, 2015 10:19 am
by Support Team
Hi c676228,

I'm glad to hear that.

Regards,
Robert