Forum Discussion

chrisb's avatar
chrisb
Regular Contributor
9 years ago
Solved

Is searching using css quicker than using Test Complete's find methods?

Hi,   I recently started using CSS selectors (QuerySelector) to locate cells in large tables in a web application under test and am finding it is much quicker than using Test Complete's find method...
  • chrisb's avatar
    9 years ago

    Think I answered my own question after reading Test Complete documentation! In most cases where the element attribute is displayed in the Object Spy tool then it makes sense to use the Find and FindAll methods (whatever they are doing!). In some cases I use CSS selectors to locate an element using attributes not displayed in the Object Spy tool. Would be nice to know what the Find and FindAll methods are using to search for elements but I suppose that is not going to happen as this is a closed toolset.