Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
How to get the treeview item value and context .
posted

Hi ,

Is there anybody can give us some help about how to get the treeview value as show in the picture?

And we have some recorded code in below , please take a look at hope there is has some properties can be configured. Many thanks.

trvViewMatchs().click(atPath("Total(13)->Perfect(4)->Location(CAPTION)"));
  trvViewMatchs().click(atPath("Total(13)->Unmatched(7)->Location(CAPTION)"));
  trvViewMatchs().click(atPath("Total(13)->Unmatched(7)->c(1)->Location(CAPTION)"));

 

 

Thanks in advance.
 

 

Parents
  • 6729
    Offline posted

    Hi,

    I'm not sure what are you trying to get here. What do you mean by "treeview value"?

    If you want the text of a specific node you can use "GetNAProperty" method as follow:

    trvViewMatchs().GetNAProperty("Nodes[0].Nodes[2].Nodes[2].Text")

     

    Regards,

    Ammar

Reply Children