Figure 1: Parent-Child RelationshipWe can also view the same relation in UIMap.Uitest window, which looks something like this
Figure 2: UIMap.Uitest of Visual Studio
Why do we need relationship?Before answering this question, let’s take our most popular browser automation testing tool Selenium. Let’s examine the code snippet below
Figure 3: Selenium Code Snippet (JAVA)
The above code snippet leaves us with following questions
- Where is the relationship of controls maintained?
- How does Selenium manage to identify the controls?