title: How to mark html input fields of type checkbox in Geb?
body: <p>I fail to check two html input fields of type checkbox on a web page using Geb.</p>
  
  <p>The html code of fields in question is shown below: 
  <code>&lt;input id="yui-gen136" style="width: 50px;" class="assemble-document" type="checkbox"&gt;</code>
  (the other has an id="yui-gen133").</p>
  
  <p>At first, I tried: <code>$('input[type=checkbox]').click()</code> 
  but it didn't work ... for the two fields I want to check. </p>
  
  <p>On the other hand, it did work for another input field (there are 3 such fields on this page) which in html is: <code>&lt;input id="riskCheckbox" value="false" onclick="onCheckBoxClick()" type="checkbox"&gt;</code></p>
  
  <p>Having read Geb manual on <a href="http://www.gebish.org/manual/current/navigator.html#accessing_input_values" rel="nofollow noreferrer">filling inputs and checkboxes</a> and also some discussion on Stack about checkboxes in Geb <a href="https://stackoverflow.com/questions/18848429/cannot-get-a-checkbox">here</a> and <a href="https://stackoverflow.com/questions/25175809/unable-to-check-the-checkbox-in-geb">there</a>, I tried such navigators:</p>
  
  <pre><code>$("div[id*='assoc_packageItems-cntrl-currentValueDisplay'] input")
  </code></pre>
  
  <p>which returned me two input objects I am interested in. Then, I accessed them separately with id's:</p>
  
  <pre><code>("div[id*='assoc_packageItems-cntrl-currentValueDisplay']").find("input[id='yui-gen136']")
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>("div[id*='assoc_packageItems-cntrl-currentValueDisplay']").find("input[id='yui-gen133']")
  </code></pre>
  
  <p>Unfortunately applying <code>.value(true)</code>, <code>.value("true")</code> or <code>.value('true')</code>, as suggested in Geb manual and Stack discussions, on them resulted in an error:</p>
  
  <pre><code>TypeError: $(...).find(...).value is not a function
  </code></pre>
  
  <p>There is no Javascript code neither in these two fields nor in any surrounding element. </p>
  
  <p>When, as a user, I tick these two boxes I get a message on the console "the element not found". So I followed this route and the only bizzare thing I observed is that <code>disabled=""</code> pops up in the <code>&lt;input&gt;</code> field for a second when I tick the box on. 
  So that the <code>&lt;input&gt;</code> field looks like:</p>
  
  <pre><code>&lt;input id="yui-gen136" style="width: 50px;" class="assemble-document" type="checkbox" disabled=""&gt;
  </code></pre>
  
  <p>Normally, there is no 'visibility' option inside  html tag I am interested in.</p>
  
  <p>How should one handle such unusual checkbox in Geb? Is it a problem with "disable" option?</p>
  
  <hr>
  
  <p>EDIT
  here is the html part of the surrounding form. The problem is, all of these elements are generated randomly.
      </p>
  
  <pre><code>&lt;div id="page_x002e_data-form_x002e_task-edit_x0023_default_assoc_packageItems-cntrl-currentValueDisplay" class="current-values object-finder-list yui-dt form-element-border form-element-background-color"&gt;
  
  &lt;div class="yui-dt-mask" style="display: none; padding: 0em 0.5em;"&gt;&lt;/div&gt;
  &lt;table id="yuievtautoid-0" summary=""&gt;
  
  &lt;colgroup&gt;&lt;/colgroup&gt;
  &lt;thead&gt;&lt;/thead&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>
  
  <pre><code>&lt;tr id="yui-rec128" class="yui-dt-rec yui-dt-first yui-dt-even" style=""&gt;
      &lt;td class="yui-dt116-col-nodeRef yui-dt-col-nodeRef yui-dt-first" headers="yui-dt116-th-nodeRef " style="width: 50px;"&gt;&lt;/td&gt;
      &lt;td class="yui-dt116-col-metadata yui-dt-col-metadata" headers="yui-dt116-th-metadata "&gt;&lt;/td&gt;
      &lt;td class="yui-dt116-col-update yui-dt-col-update" headers="yui-dt116-th-update "&gt;&lt;/td&gt;
      &lt;td id="yui-gen134" class="yui-dt116-col-download yui-dt-col-download" headers="yui-dt116-th-download "&gt;&lt;/td&gt;
      &lt;td id="yui-gen136" class="yui-dt116-col-check yui-dt-col-check yui-dt-last" headers="yui-dt116-th-check "&gt;
          &lt;div id="yui-gen138" class="yui-dt-liner" style="padding: 0em 0.5em;"&gt;
              &lt;input id="yui-gen137" class="assemble-document" type="checkbox" style="width: 50px;"&gt;&lt;/input&gt;
  
                  &lt;/div&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr id="yui-rec129" class="yui-dt-rec yui-dt-last yui-dt-odd" style=""&gt;&lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p></p>