       spr.graphics.drawRect(0, 0, targ.width, targ.height);
     }
 
+    // Generates a chained-locator expression for the clicked-on item
     public static function select(e:MouseEvent):void {
       var item:* = e.target;
-      WMLogger.log(item.toString());
       var expr:String = '';
+      // Look for these items, in this priority
       var locatorPriority:Array = [
         'automationId',
         'id',

      if (expr.length) {
        // Strip off trailing slash
        expr = expr.replace(/\/$/, '');
        WMLogger.log(expr);
      }
      else {
        WMLogger.log('Nothing found.');
      }
    }


        for each (var lookup:String in locatorPriority) {
          // If we find one of the lookuup keys, prepend
          // on the locator expression
          if (lookup in item && item[lookup]) {
            expr = lookup + ':' + item[lookup] + '/' + expr;
            break;
          }
