Forum Discussion
to do conditional name mapping, you must have that page open on your machine.
then rightclick edit on the free space in the namemapping editor here to bring up this window (for the pageObject youd like to make into conditional mode)
select conditional mode from the bottom left corner of the new window
click on the URL property, and then the "OR" toolbar option from the right to make it look like:
and select UR: (for property), equals (operator) and add in your second url that youd like to accept:
now, any of those coinciding menu/nav tool bar options that may exist on both url 1 and url 2 (google.com and google123.com in my case)
should all be mapped under this particular page object
---------------------
second way of doing this would be wildcarding the URL property to accept a larger range of values:
- fc094 years agoNew Contributor
Thanks for your reply.
I've looked into conditional name mapping and wildcards as possible solutions, but I'm wondering if it's possible to do the following. Let's say I have two pages in my application, A and B, which share some common elements, but also each have some distinct elements. What I would like is to have three page objects in TestComplete: 1) a page object for elements unique to A, 2) a page object for elements unique to B, and 3) a page objects for elements which are in both A and B.
It seems like with conditional name mapping and wildcards, I can only have number 3 - please correct me if I'm mistaken.
Related Content
- 4 years ago
Recent Discussions
- 4 days ago
- 5 days ago