vikram_u_k
9 years agoContributor
How do i add Python Libraries and extend the Pyton support on TestComplete with Python 3.0 (TC11.31)
How do i add Python Libraries and extend the Pyton support on TestComplete with Python 3.0 (TC11.31). I note that the Python executable on folder C:\Program Files\SmartBear\TestComplete 11\Bin\Exten...
- 3 years ago
Hi,
Technically, something like this (untested regex) should work:
results = myObject.FindAll( ["contentText", "ChildCount"], ["Employer", "regexp:^([6-9])|(\\d{2,})$"] );
where ([6-9])|(\\d{2,}) regex means: either a figure in a range from 6 to 9 or any combination of two or more figures.
However I am not sure that this approach is easily parameterizable (for the case when today you are looking for child count greater than 5, but tomorrow you will need to search for 7 or more children).
So I, probably, would just search for all "Employer"s and then loop through the returned array and remove those elements that do not fit your condition.