cancel
Showing results for 
Search instead for 
Did you mean: 

can we use xpath as object identifiers with Key word testing

SOLVED
Highlighted
New 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
Highlighted
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 Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

3 REPLIES 3
Highlighted
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
================================
Highlighted
New 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.

Highlighted
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 Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors