Wikis - Page

Knowledge Doc: LoadRunner Truclient prototol: XPath Parameterization

0 Likes

This article shows a sample script to parameterize XPath values in the Truclient protocol

Environment

LoadRunner Professional Truclient protocol 

 

Situation

When using LoadRunner Truclient, if there are several objects with similar XPath values like below:

xpath="//div[@id=\"sampleContainer\"]/div/div[2]/div[9]/div/div[1]/table/tbody/tr[1]/td[1]/table/tbody[2]/tr/td/div[2]/table/tbody/tr[1]/td[5]/img";​​​

 

xpath="//div[@id=\"sampleContainer\"]/div/div[2]/div[9]/div/div[1]/table/tbody/tr[1]/td[1]/table/tbody[2]/tr/td/div[2]/table/tbody/tr[2]/td[5]/img";​​​

 

xpath="//div[@id=\"sampleContainer\"]/div/div[2]/div[9]/div/div[1]/table/tbody/tr[1]/td[1]/table/tbody[2]/tr/td/div[2]/table/tbody/tr[3]/td[5]/img";​​​

Those XPatch values can be parameterized to optimize and increase the flexibility of the script

Read full article

Labels:

Support Tips/Knowledge Docs
Comment List
Related
Recommended