title: Imacros: Check if text exists
body: <p>I need help with iMacros.</p>
  
  <p>I have a task which consists of two parts:</p>
  
  <p>1) Go to a website and fill out a form.</p>
  
  <pre><code>URL GOTO=https://example.com/registration
  TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:NQKtn CONTENT=ggg
  </code></pre>
  
  <p>2) Check if the text <code>Mytext</code> exists (which has to appear after filling out the form).</p>
  
  <p>The task of the script is to save the string <code>ggg</code> to <code>file.txt</code> if the text is found, and to pass it if it's not.</p>
  
  <p>How can I solve this problem? Thanks very much!</p>