You can use jQuery-like expressions in interaction code. For instance:
wait($('selector')); // wait for this element to appear
click($('selector')); // click on this element after it appears
// wait for an element that matches the selector and contains 'Price' in it to appear wait($('selector').filter_includes('Price'));
// wait for an element that matches the selector and contains 'Price' in it to not appear wait($('selector').filter_includes('Price'), {hidden: true});