KrzysztofLach
3 years agoNew Contributor
loosing mapped web object
Hi,
The parent web object in Name Mapping has prepared declaration:
.class11.class12:not(.class13) > .class21
Similar example css setting there are at first picture here => https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/selectors.html .
My Keyword Test uses this mapped object in a loop.
It works during first run properly but in the second turn I getting error of unrecognized child object (because above described parent is unrecognized) with the log message below:
The window size is (0, 0); the screen rectangle: the left top corner is (0, 99), the right bottom corner is (0, 99).
I may change unrecognized status manually by unmark and then mark again mapped declaration. After then, it can recognize parent mapped object by "Highlight" menu order (and of course child too).
What I may do for improve this situation ?
For explanation - HTML code I work for has parent object declaration lines like below:
<parent1 class = class1 class2 class3 name=... >
<parent1 class = class1 class2 name=... >
...
<parent1 class = class1 class2 class3 name=... >
I must indicate this one parent object which has no class3.
Test Complete is mapping this object as .class1:nth-child(<nr>) during recording Keyword Test. It isn't proper because in the next turn loop of Keyword Test the number <nr> of chosen position nth-child is changing dynamically (besides the web page looks identically).