Forum Discussion
Here are the Angular controls that you can access in TC
Did you try recording a test? What happened when you tried that?
- Vars015 years agoOccasional Contributor
Thanks. I tried with recording. It gets recorded but the elements changes its location. So I wanted to iterate through all rows and whichever matches exactly I want to click.
- Marsha_R5 years ago
Champion Level 3
I suggest figuring out how to process one row first and then building the loop around that code.
- Vars015 years agoOccasional Contributor
I tried selecting but I am not able to click on the element or capture the text present on it. Please have a look at the script below:
ItemCount = Aliases.browser.page.FindElements("xpath");
for(var i = 1; i <= ItemCount.length ; i++)
{
//I want to capture the Text for the below and click on the link how should I do that. I am not able to get any function like getText/click
var Name = page.FindElement("xpath[" + i + "]/td");