This is a swiss-knife command. Can do (almost) anything.
Searches for jquery xpath, starting from hat.root(), so that can be modified to search for a non-document wide region.
All jquery elements are filtered to be:
If no elements are found, tester will for maximum of max_wait_cnt option ticks before fail.
Example:
hat.jquery(".myclass",function(el) { el.click(); } );
Arguments:
Datatype | Description |
---|---|
xpath | Search xpath (to be applied to root() and filterd) |
function(el) {} | Function to be called after xpath evaluated successfully |