Cannot recognize object during run time.

Ask general questions here.
jwei
Posts: 8
Joined: Fri Nov 09, 2012 7:34 pm

Cannot recognize object during run time.

Post by jwei » Fri Nov 09, 2012 8:54 pm

I record a simple login page, but the Login button is not clicked when I play back the script.

On Path Editor window, message shows "one element found", but I click Highlight button to locate the object, no object is highlighted.

If I change the required option to tagvalue, Login button can be highlighted, but message shows two elements found.

How can I solve this issue?
Attachments
screenshot.png
screenshot.png (117.5 KiB) Viewed 844 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Cannot recognize object during run time.

Post by Support Team » Mon Nov 12, 2012 3:46 pm

Hello,

Could you please provide us a snapshot of your application?
(Take a look at our section Creating Ranorex Snapshot Files in our User Guide.)

Regards,
Markus (T)
.
Image

jwei
Posts: 8
Joined: Fri Nov 09, 2012 7:34 pm

Re: Cannot recognize object during run time.

Post by jwei » Tue Nov 13, 2012 1:49 am

Snapshot file is attached.
Attachments
login.rxsnp
(491.23 KiB) Downloaded 173 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Cannot recognize object during run time.

Post by Support Team » Tue Nov 13, 2012 1:22 pm

Hi,

Thanks for the snapshot!
The snapshot looks okay for me, so what happens if you copy the RxPath (with the id) of that element to the Spy, could Spy highlight the element?
What happens if you click on the "Verify" button before you click on "Highlight"?

Regards,
Markus
.
Image

jwei
Posts: 8
Joined: Fri Nov 09, 2012 7:34 pm

Re: Cannot recognize object during run time.

Post by jwei » Tue Nov 13, 2012 6:34 pm

Please check this snapshot again, I click track button to add login button to repository, but I cannot highlight this button.
Attachments
login_11132012.rxsnp
(457.24 KiB) Downloaded 161 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Cannot recognize object during run time.

Post by Support Team » Wed Nov 14, 2012 11:27 am

Hello,

Thank you for your snapshot.

The button is NOT uniquely identified within your application under test.
There are two buttons with the same ID (submit) and TagValue (login).

One of them is not accessible as shown in the attachment.
Please verify this button in your application.

Regards,
Markus (T)
Attachments
SubmitButton_tagvalue.JPG
SubmitButton_tagvalue.JPG (28.86 KiB) Viewed 795 times
.
Image