title: Selenium div attributes keep changing, how can I find this element?
body: <p>I am trying to find an element with Selenium and Java, the problem is that the element's id, class, and name always increment so I am not able to find it with selenium. Below is what I am currently trying:</p>
  
  <pre><code>WebElement field = driver.findElement(By.xpath("//input[contains(@linkText, 'Broadcast copy')]"));
  </code></pre>
  
  <p>In my html file these are the attributes that keeps changing:</p>
  
  <pre><code>id="files[%2Fopt%240%2Frules%2F%2F000102%2.xml][%2Fcluster%2Fname]"
  
  name="files[%2Fopt%240%2Frules%2F%2F000102%2.xml][%2Fcluster%2Fname]" 
  
  value="copy (Cluster 102)"
  </code></pre>
  
  <p><strong>Entire html</strong></p>
  
  <pre><code>&lt;tbody&gt;
     &lt;tr class='rowOdd'&gt;
        &lt;td&gt;&lt;b&gt;Name&lt;/b&gt;&lt;/td&gt;
        &lt;td&gt; &lt;input type='text' data-validation='required validate-name-unique validate-name-not-empty' size='65' id='files[%2Fopt%240%2Frules%2F%2F000102%2Fcluster.xml][%2Fcluster%2Fname]' name='files[%2Fopt%240%2Frules%2F%2F000102%2Fcluster.xml][%2Fcluster%2Fname]' value='copy (Cluster 102)' /&gt; &lt;/td&gt;
  </code></pre>
  
  <p>These always increment and I have no access to the html file to change anything. So my question is how can I find this input element? Thanks in advance.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I get the error:</p>
  
  <pre><code>Unable to locate element:{"method":"id", "selector":"files[.*][.*]"}
  </code></pre>