Can't remap the object
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can't remap the object
Hello,
I am working with this page:
https://www.consolidatedcredit.org/housing/
I am clicking on "18004352261" (checkpoint) and TC "thinks I am hitting "Search", so i go to my name mapping and try to remap some objects (for example "inner html, inner text, textcontent"..)
For some reason when I rename these and save them they instantely change back to wrong old value 'search", not phone number . Any recommendations?
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »