How to select a pop up present inside another pop up.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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");
Thanks
Shankar R
LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com
“You must expect great things from you, before you can do them”- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried like that but it clicks on item "Set Views" only and not on child items
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay, What you see it in PopupMenu object in your treeView. A screenshot would be better on the Object Properties
Thanks
Shankar R
LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com
“You must expect great things from you, before you can do them”