Selenium dhtmlxtree NoSuchElementException in Chrome Java
<p>I could reach all elements by <code>driver.findElement()</code> function.
<strong>Tree elements were created using dhtmlx library and when I try to reach them I get NoSuchElementException</strong>.</p>

<p>I tried to reach by id, xpath, class, text, etc. but none of them worked for me. I also tried implicit waiting and <code>Thread.sleep()</code> methods but the result is the same.</p>

<pre><code> &gt; &lt;tr&gt; &lt;td class="standartTreeImage"&gt; &lt;img border="0" align="absmiddle"
    &gt; style="padding: 0px; margin: 0px; width: 18px; height: 18px;"
    &gt; src="http://marduk:5543/atlas/themes/third_party/dhtmlx/dhtmlxTree/codebase/imgs/vse_datasources/plus3.gif"&gt;
    &gt; &lt;/td&gt; &lt;td width="20px" style="display: none;"&gt; &lt;img align="absmiddle"
    &gt; src="http://marduk:5543/atlas/themes/third_party/dhtmlx/dhtmlxTree/codebase/imgs/vse_datasources/iconUncheckAll.gif"
    &gt; style="width: 16px; height: 16px;"&gt; &lt;/td&gt; &lt;td
    &gt; class="standartTreeImage" style="width: 18px;"&gt; &lt;img border="0"
    &gt; align="absmiddle" style="padding: 0px; margin: 0px; width: 18px;
    &gt; height: 18px;"
    &gt; src="http://marduk:5543/atlas/themes/third_party/dhtmlx/dhtmlxTree/codebase/imgs/vse_datasources/folderClosed.gif"&gt;
    &gt; &lt;/td&gt; &lt;td class="standartTreeRow" nowrap="" style="width: 100%;
    &gt; font-size: 10pt; cursor: pointer;"&gt; &lt;span class="standartTreeRow"
    &gt; style="padding-left: 5px; padding-right: 5px;"&gt;hr-istanbul [15]&lt;/span&gt;
    &gt; &lt;/td&gt; &lt;/tr&gt;
</code></pre>

<p>For example one of them is this: I need to click the first <code>td</code>. Only locator is the image but I can not access the element .. NoSuchElementException.</p>

<pre><code>element = driver.findElement(By.xpath("//img[contains(@src,'http://marduk:5543/atlas/themes/third_party/dhtmlx/dhtmlxTree/codebase/imgs/vse_datasources/plus3.gif')]"));
</code></pre>

<p>Also tried to reach last column element it didnt work either.</p>

<pre><code>element = driver.findElement(By.xpath("//*[contains(text(), 'hr-istanbul [15]')]"));
</code></pre>