Ranorex Spy can't derive ToolWindow XPath on certain machine
Posted: Wed Nov 17, 2010 7:41 am
I have a WPF application that uses Actipro's ToolWindows with tabbed containers. For a test I've written, I made a Ranorex recording that selects a tab in one of the ToolWindowContainers and then selects a row in a WPF DataGrid that's in the selected toolwindow. When playing the recording on my dev box, it works great.
However, when I tried running the same recording on my build machine (used primarily for nightly builds and checkin testing), Ranorex fails to find the control that's in the selected ToolWindow.
The XPath on my dev box is:
/form[@automationid='mainWindow']/container/container[4]/container[@automationid='packageVariablesWindow']/element/table[@automationid='variablesGrid']
However, when using Ranorex Spy on my build machine, I only get an XPath of /form[@automationid='mainWindow']/container/container[4].
I get this wrong path regardless of where I press Ctrl+LWin within the ToolWindow. Note that the XPath doesn't even include the tool window itself (which is container[@automationid='packageVariablesWindow'] in the working XPath).
Interestingly, if I undock and redock the tab container, then Ranorex Spy correctly identifies the XPath to the ToolWindow's DataGrid.
Does anyone have an idea as to why Ranorex can discern the XPath on my dev machine but not on my build machine?
Thanks,
-Craig
However, when I tried running the same recording on my build machine (used primarily for nightly builds and checkin testing), Ranorex fails to find the control that's in the selected ToolWindow.
The XPath on my dev box is:
/form[@automationid='mainWindow']/container/container[4]/container[@automationid='packageVariablesWindow']/element/table[@automationid='variablesGrid']
However, when using Ranorex Spy on my build machine, I only get an XPath of /form[@automationid='mainWindow']/container/container[4].
I get this wrong path regardless of where I press Ctrl+LWin within the ToolWindow. Note that the XPath doesn't even include the tool window itself (which is container[@automationid='packageVariablesWindow'] in the working XPath).
Interestingly, if I undock and redock the tab container, then Ranorex Spy correctly identifies the XPath to the ToolWindow's DataGrid.
Does anyone have an idea as to why Ranorex can discern the XPath on my dev machine but not on my build machine?
Thanks,
-Craig