Wednesday, 15 July 2015

Selenium use a Tree class for expanding/clicking a node in a tree made with RichFaces -


Selenium R.C. I need to expand / click one node in the tree with RichFaces. I have done a TreeUtil class, but at this point I am not sure how to click / expand on a node (which I will do with this xpath Receives: "// div [@ id = 'foo: classTree'] / div / div / table [" + node + level + "] / TDI / TR / TD / DIV / A") is used only for one node And a nodelevel

Anyone have any ideas?

Your question is not very clear to me: they are not working with click commands (with aappath) Because those results are in the "element not found" errors or because the click is not just expected of your behavior?

If this is an element, found point, I recommend that you use the $ x function of firebug in the console to refine your XPath. You can run this function call in the firebug function to see what XPath is actually evaluating:

  $ x ("// div [@id = \" foo: This is the best way to understand XPath accurately where XXX is some index; classTree \ "] / Div / div / table [XXX] / tbody / tr / td / a")  

If the problem is that the clicks are not actually to change the tree map, then click () to fire ("/ / Xpath", "click") and see if It helps.


No comments:

Post a Comment