cancel
Showing results for 
Search instead for 
Did you mean: 

Can't remap the object

SOLVED
Highlighted
Frequent Contributor

Re: Can't remap the object

These screenshots are for "search" object: 

 

Community Hero

Re: Can't remap the object

"remap" to me means you want to delete the name mapping for the object and spy it again.  I don't think that's what you are trying to do, but I'm not sure.

 

Tell us:

What steps you took to try to accomplish your task

What happened when you tried

Highlighted
Community Hero

Re: Can't remap the object


@romanmfs wrote:

These screenshots are for "search" object: 

 


OK... for the search object, I'd change the mapping a little bit.  Rather than the ObjectIdentifier of "1", replace that with the "contentText" property with the value of "Search".  That will be more specific for the "Search" button.  The possibility is that the other button you're trying to click on, at some point in time, ALSO has that "1" value and things may be getting confused.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Highlighted
Community Hero

Re: Can't remap the object


@romanmfs wrote:

Hi, thanks for quick reply, 

i am stil having issues, hope you can help me 🙂

 

Here is the info:

https://www.consolidatedcredit.org/housing/

We are working with the number: 1-800-435-2261 on the header.

Screenshots attached:

(the properties of the phone number for some reason are for the "search" button no matter if I try to change them)

Im not sure where is "advanced propery list"

 

Those 3 screenshots are for "number" object

 

 

 


Change the properties of the mapping of this object.  I'd remove the ObjectIdentifier and replace it with the "classname" which indicates it is a phone-number field.  As mentioned in my other response, because the two text nodes have the same index of "1", mapping is getting confused.

When folks up here reference the need to make sure that the properties you use for identifying an object are "unique", this is what we mean... TextNode 1 is ambiguous... depending upon how the page is built, there could be any number of objects which, at some point in time, show up as "TextNode(1)" so you need to get more specific.

 

Try the suggestions I made and hopefully this will help.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

Highlighted
Frequent Contributor

Re: Can't remap the object

I finally figured it out!! So i will still let TC map out the objects by itself but from now on i wil just rename my alieses and chooses unique properties of an object that i can see when inspect the element. What a good feeling LOL

Highlighted
Community Hero

Re: Can't remap the object


@romanmfs wrote:

I finally figured it out!! So i will still let TC map out the objects by itself but from now on i wil just rename my alieses and chooses unique properties of an object that i can see when inspect the element. What a good feeling LOL


Good choice!  Yes, that last sentence especially...  always revise the mappings TC does automatically... it will save you MANY headaches later down the road.  Glad you got it figured out!


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors