Identify dynamic and transient UI element

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
c676228
Posts: 176
Joined: Mon Apr 06, 2015 5:40 am

Identify dynamic and transient UI element

Post by c676228 » Wed May 06, 2015 6:51 pm

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

c676228
Posts: 176
Joined: Mon Apr 06, 2015 5:40 am

Re: Identify dynamic and transient UI element

Post by c676228 » Thu May 07, 2015 12:22 am

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?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Identify dynamic and transient UI element

Post by Support Team » Fri May 08, 2015 9:31 am

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

c676228
Posts: 176
Joined: Mon Apr 06, 2015 5:40 am

Re: Identify dynamic and transient UI element

Post by c676228 » Sat May 09, 2015 12:38 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Identify dynamic and transient UI element

Post by Support Team » Mon May 11, 2015 10:19 am

Hi c676228,

I'm glad to hear that.

Regards,
Robert