Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override object GetService(Type serviceType)
- {
- if (!_initialized)
- {
- _initialized = true;
- UITestClass.Saving += OnUiTestSave;
- }
- return null;
- }
- private void OnUiTestSave(object sender, UITestEventArgs e)
- {
- if (e.UITest != null && e.UITest.Maps != null && e.UITest.Maps.Count == 1)
- {
- foreach (TopLevelElement topLevelElement in e.UITest.Maps[0].TopLevelWindows)
- {
- LoopThroughAll(topLevelElement, topLevelElement.Id);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement