TestProject Forum

Parametrization in Elements

Hi Team,
I am new to automation using TestProject.I have a case for which I couldn’t find a solution.
I am having a XPath of a button element(//button[@text()=’’] and I want to parametrize this element on each steps with different values,for which i have created different test parameters.
Example :
First step ://button[@text()=‘Next’
Second step : //button[@text()=‘Cancel’]
How can I get this done?
Thanks in advance

You should be able to insert parameters into your locators as shown here by using the “Use Parameter” option that appears when hovering over the locator text box:

Hi @anila.
as Ferny said you can use parameter in element locator by clicking the Use Parameter icon
after adding a parameter you will be able to see that it was added as part of the locator