Hi,
I have a couple of websites to automate and they only differ in data. i.e. all the CSS is same.
Consider the 2 websites:
http://tradetrucks.com.au/
http://tradefarmmachinery.com.au/
I need to click on 1st element on the home page of tradetrucks, which has the xpath:/html/body/div/div/div/div[3]/div/form/div/div/div/div/div/a
and the 1st element on the home page of tradefarmmachinery also has same xpath: /html/body/div/div/div/div[3]/div/form/div/div/div/div/div/a
But, when I record the test of clicking on the element in test studio on one of the website, I cannot reuse it for other website because the teststudio considers all the properties of element to identify it.
How do I make test studio use only xpath in identifying this single element. The rest of the elements in the test have to be identified with all properties.
Please help.
Thanks,
Meher
I have a couple of websites to automate and they only differ in data. i.e. all the CSS is same.
Consider the 2 websites:
http://tradetrucks.com.au/
http://tradefarmmachinery.com.au/
I need to click on 1st element on the home page of tradetrucks, which has the xpath:/html/body/div/div/div/div[3]/div/form/div/div/div/div/div/a
and the 1st element on the home page of tradefarmmachinery also has same xpath: /html/body/div/div/div/div[3]/div/form/div/div/div/div/div/a
But, when I record the test of clicking on the element in test studio on one of the website, I cannot reuse it for other website because the teststudio considers all the properties of element to identify it.
How do I make test studio use only xpath in identifying this single element. The rest of the elements in the test have to be identified with all properties.
Please help.
Thanks,
Meher