Merge Page Nodes
For Frame nodes
For Silverlight apps
The default for the Elements Page Compare Mode in Project Settings > Recording Options is FullPathAndQuery. Depending on your application, this can cause duplication in the Elements Explorer. Although the page node is not used to locate an element during execution, it's best to consolidate duplicate page nodes for organizational and maintenance purposes. For example:
- Navigate to http://www.bing.com/?123
- Enter text into the query box.
- Click the Search button.
- Notice the Elements Explorer.

- Navigate to http://www.bing.com/?456
- Repeat steps 2 and 3.
- Notice the Elements Explorer.
- The SbFormQText and SbFormGoSubmit elements are duplicated under each page node. This should not cause an Unable to locate element failure during execution, however it can make for unnecessary maintenance and disorganization in your project.

- To prevent duplication moving forward, change the Elements Page Compare Mode to FullPath.
- To merge the existing duplicates, highlight each page and change its CompareMode property to FullPath.

- Click Refresh in the Elements Explorer.

- The nodes merge, the tree structure is better organized, and any maintenance needed on an element can now be done in one place.
If FullPath is not applicable to your project, review the Project Settings > Recording Options page and select the Elements Page Compare Mode that best suits your needs.
Frames
An element directly under a page node is located entirely by its Find Settings. Conversely, an element within a frame must be located via the frame first.
- Here we see a similar situation due to dynamic frame IDs.

- To merge duplicate frame nodes caused by dynamic frame IDs, strip the dynamic portion from each ID and use a tilde (~) to indicate a partial match. See this page for more information on frames.
- Click Refresh to merge the duplicates.

SilverlightApps
Like frames, an element within a SilverlightApp must be located via the SilverlightApp first. Unlike a frame node, a SilverlightApp node has Find Settings just like a regular element, which can be changed via the Find Element dialog.