title: using css selector for imacros with conditions
body: <p>Want to know if conditional css selector works with iMacros? I want to run a web scraper. The below selector is working with Web Scrape chrome extension, but it doesn't work with iMacros.</p>
  <p>Selector:</p>
  <pre><code>div.s-expand-height:has(span.a-price.a-text-price), .celwidget div.s-item-container:has(span.a-price.a-text-price), div.s-include-content-margin:has(span.a-price.a-text-price)
  </code></pre>
  <p>I tried this with iMacros in below formats, but not working</p>
  <p><strong>Format 1</strong></p>
  <pre><code>TAG POS=7 TYPE=DIV ATTR=CLASS:&quot;s-expand-height:has(span a-price.a-text-price), celwidget s-item-container:has(span.a-price.a-text-price), s-include-content-margin:has(span.a-price.a-text-price)&quot; EXTRACT=TXT
  </code></pre>
  <p><strong>Format 2</strong></p>
  <pre><code>TAG POS=7 TYPE=DIV ATTR=CLASS:&quot;div.s-expand-height:has(span.a-price.a-text-price), .celwidget div.s-item-container:has(span.a-price.a-text-price), div.s-include-content-margin:has(span.a-price.a-text-price)&quot; EXTRACT=TXT
  </code></pre>
  <p>My complete iMacros script looks like this.</p>
  <pre><code>SET !DATASOURCE E:\imacros\urllist1.csv
  SET !LOOP 2
  SET !DATASOURCE_LINE {{!LOOP}}
  
  URL GOTO={{!COL1}}
  WAIT SECONDS={{!COL2}}
  
  TAG POS=7 TYPE=DIV ATTR=CLASS:&quot;s-expand-height:has(span.a-price.a-text-price), .celwidget s-item-container:has(span.a-price.a-text-price), s-include-content-margin:has(span.a-price.a-text-price)&quot; EXTRACT=TXT
  ADD !EXTRACT {{!URLCURRENT}}
  
  'TAG POS=1 TYPE=DIV ATTR=CLASS:&quot;s-expand-height s-include-content-margin s-border-bottom s-latency-cf-section&quot; EXTRACT=TXT
  
  SAVEAS TYPE=EXTRACT FOLDER=E:\imacros FILE=data.csv
  </code></pre>