Set path as Dynamic and Wildcard

#1
Hi,
Can we set the path as both dynamic and wildcard for the same element?

I have a requirement where TR(1) value is changing to 1,2,3,4 etc.. and after TR(1), the path attributes are changing. Please help

Thanks
 
#2
Any attribute can be set to dynamic and can be made *Wildcard* within the Params.
However, it is not recommended to use wildcards for PATH.

As a best practice, please try this approach.
Create a data item with path something like this /HTML/BODY/TR(Counter)/etc

1) Either increment the Counter and check exists for the element, then continue.
2) OR Insert multiple check exists conditions in single wait statement. Each check exists should contain different Counter values.
Eg : /HTML/BODY/TR(1)/etc , /HTML/BODY/TR(2)/etc , /HTML/BODY/TR(3)/etc , /HTML/BODY/TR(4)/etc . . . . .
 
#3
Hi,
Can we set the path as both dynamic and wildcard for the same element?

I have a requirement where TR(1) value is changing to 1,2,3,4 etc.. and after TR(1), the path attributes are changing. Please help

Thanks

If all you need to do is change the table row (TR), AND the rest of the HTML for the rows does not change, then what you are doing is fine, even with a wildcard (as long as the wildcard occurs AFTER the dynamic TR. This is a good way to increment through HTML table rows, and I have used it many times.
 
Top