cancel
Showing results for 
Search instead for 
Did you mean: 

can we use xpath as object identifiers with Key word testing

SOLVED
sudam_SL
Occasional Contributor

can we use xpath as object identifiers with Key word testing

Hi ,

Can anyone manage to use xpath for keyword testing?

1 ACCEPTED SOLUTION

Accepted Solutions
TanyaYatskovska
Community Manager

Re: can we use xpath as object identifiers with Key word testing

Hi @sudam_SL,

I suppose you are using Name Mapping, right? So, you can use wildcards or regular expressions in the identification properties - this will allow you to remove dynamic values from the IDs. Please refer to the 

Basic Mapping Criteria help article for details.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

4 REPLIES 4
AlexKaras
Community Hero

Re: can we use xpath as object identifiers with Key word testing

Hi,

 

More details please?

In general:

-- Yes, this is possible;

-- Except for the cross-platform mode, XPath is not the recommended approach in TestComplete's world;

-- You will have to craft XPath expressions yourself (or via Developer Tools).

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
sudam_SL
Occasional Contributor

Re: can we use xpath as object identifiers with Key word testing

Hi AlexKaras,

Thanks for the quick response. let me explain you what we have to do using xpath.

In my system (under testing) doesn't have unique attributes as it develop with pega framwork.

in that case i wanted to capture some web elements relatively but i'm unable to do it. so it would be great if you can guide me to use xpath for above matter.

Practical Issue : in attached screen i need to store RDTH-XXXX value, but it doesn't have unique attribute unless text contains, that text getting change in each execution cycle. that is why i need to use xpath to capture that RDTH-XXXX value relatively based on "Retired Death" text.

 

Regards,

Sudam.

TanyaYatskovska
Community Manager

Re: can we use xpath as object identifiers with Key word testing

Hi @sudam_SL,

I suppose you are using Name Mapping, right? So, you can use wildcards or regular expressions in the identification properties - this will allow you to remove dynamic values from the IDs. Please refer to the 

Basic Mapping Criteria help article for details.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

sudam_SL
Occasional Contributor

Re: can we use xpath as object identifiers with Key word testing

Thanks for the response. 

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors