Selenium WebDriver Clicked On Treenode Expander But Did not Expand

180 views
Skip to first unread message

peterlck

unread,
Sep 1, 2015, 2:33:06 PM9/1/15
to Selenium Users
Hi Everyone,

I use Selenium WebDriver 2.47.1 and Firefox 40.0.3 to automate an ExtJS application using XPath locator strategy. However for some reason with Firefox browser, I am not able to click on the x-tree-expander to expand the tree node even though it worked on Chrome browser with chrome 2.14 driver in a Linux environment.  I have tried on Firefox 34.0 as well.

The XPath is verified to be correct and actually the x-tree-expander was clicked without error.
However the node did not get expanded. No issue with StaleElementReferenceException or other WebDriverExceptions. The XPath has been verified to be correct using Firebug.

XPATH = “//div[contains(@class,'x-tree-view')]//table[contains(@class,'x-grid-item-selected')]//img[2]” or “//div[contains(@class,'x-tree-view')]//table[contains(@class,'x-grid-item-selected')]//img[contains(@class,'x-tree-expander')]

I would like to know if anyone has successfully used Selenium WebDriver to expand a tree node onFirefox browser with java client or server version 2.44 or 2.47.1?

HTML as below

<table>
   <tbody>
     <tr>
      <td>
        <img class=" x-tree-elbow-img x-tree-elbow-plus x-tree-expander" role="presentation" src="data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" style=""/>

Appreciate if anyone can provide feedback on this could be a genuine bug ?

Thanks
Reply all
Reply to author
Forward
0 new messages