18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

SAHI with JSTREE

TSheeleyTSheeley Members
edited March 2013 in Sahi - Open Source
Hello,

We have an application with a tree structure - using jstree. This structure contains tickboxes which SAHI detects as "links". So, when I record some actions, they appear as "_click(_link("01")); etc....". This NEVER works. Can anyone point me in the right direction?

Best Answer

  • hmm no example for checkboxes given... this works fine:
    _navigateTo("http://www.jstree.com/demo")
    _click(_listItem("jstree-open").children[0]);
    _wait(2000)
    _click(_listItem("jstree-closed").children[0]);
    _click(_link("Child node 1"));
    _click(_link("Child node 2"));
    

    maybe find a way to set non numeric element ids?
    Regards
    Wormi

Answers

  • Thanks Wormi,

    I wish it were that simple. When I check for a object name, I get:
    _listItem("jstree-unchecked jstree-open");

    The list contains telephone prefixes such as "01" etc. Clicking the 01 tickbox "should" select the tickbox and all of it's children (as it does when performed manually), but it does NOTHING. I looked at jstree.com, and on their homepage, they show three different trees. The third one is EXACTLY like the one we are using, with the exception that we use phone prefixes instead of text. Any help you could give would be appreciated.

    T
Sign In or Register to comment.