Forum Discussion

rushikesh's avatar
rushikesh
Contributor
7 years ago

How to select a pop up present inside another pop up.


Hi,

 

Please refer the attached image.

 

1. Here the need is to select item "Turn -ZX" present in pop up of another pop up.

   When run record script below is code obtained.

 

   treeView.ClickItemR("|CAMWorks NC-Manager|Turn Setup1");
   treeView.PopupMenu.Click("Set View");
   treeView.PopupMenu.Close();

 

   This selects only Set View item present in parent pop up but does not item present in child.

 

   Is there a way to do it ?

 

 

----------------

2. Also, i use wItems to select the item in pop up menu so that it will even run for languages other then English.

    Below is the code.

 

    CAMWorksFeatureTree.wItems.Item(0).Items.Item(4).ClickR();
    CAMWorksFeatureTree.PopupMenu.Click(5);

 

   This code selects item "Set View"

 

   Using above code if want to select "Turn -ZX", what changes are required.

 

Any help is appreciated.

 

Regards,

Rushikesh Kadam. 

 

3 Replies

  • shankar_r's avatar
    shankar_r
    Community Hero

    Hi,

     

    Since your treeView has PopupMenu option, you can try below code.

     

     treeView.ClickItemR("|CAMWorks NC-Manager|Turn Setup1");
     treeView.PopupMenu.Click("Set View|Turn -ZX");
    • rushikesh's avatar
      rushikesh
      Contributor

      I tried like that but it clicks on item "Set Views" only and not on child items

      • shankar_r's avatar
        shankar_r
        Community Hero

        Okay, What you see it in PopupMenu object in your treeView. A screenshot would be better on the Object Properties