-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing menus in child windows #160
Comments
Try |
I could get the childwindow object and its Child menu objects via C# code. But click on the 2nd Child Submenu is not working. Click on 1st Child Subment works. |
1 similar comment
I could get the childwindow object and its Child menu objects via C# code. But click on the 2nd Child Submenu is not working. Click on 1st Child Subment works. |
Normally this is due to animations not finishing in time. Try adding some thread.Sleep()s to slow things down |
Closing due to inactivity, assume sorted |
Hi,
I have a parent window and a child window. The same set of menus are repeated from parent window to child window.
I could able to access Parent menus easily and automation works perfectly.
But when I try to access Child menus, they are not working.
I could access menus from both windows via VisualUIAVerify tool. Not sure what is an isssue?
Can anybody help me?
Here is my code snippet
_mainWindow = _application.GetWindow(SearchCriteria.ByText("XXX"), InitializeOption.NoCache);
TestStack.White.UIItems.Panel upperPanel = _mainWindow.Get<TestStack.White.UIItems.Panel>(SearchCriteria.ByText("XXXX1"));
TestStack.White.UIItems.Panel lowerPanel = upperPanel.Get<TestStack.White.UIItems.Panel>(SearchCriteria.ByText("XXX2"));
TestStack.White.UIItems.GroupBox grp = lowerPanel.Get<TestStack.White.UIItems.GroupBox>(SearchCriteria.ByText("XXX3"));
Thanks,
Sachin
The text was updated successfully, but these errors were encountered: