I need to click on the categories (Network and Internet Connections,User Accounts ) under the control panel using QTP.
When i recorded thru QTP to click on Network and Internet Connections" i get the below line of code
Window("Control Panel").WinObject("DirectUIHWND").Click 638,150
what ever category i click only the coordinates changes.
please let me know on how to click on these categories in control panel.
Open control panel from Start > Run also make sure to add the objects in to the OR. I already have Explorer and SysListView32 in my OR.
SystemUtil.Run "control Panel","C:\Documents and Settings\user1",""
Window("Explorer").WinListView("SysListView32").Ac tivate "User Accounts"
Window("Explorer").WinListView("SysListView32").Se lect "User Accounts"
<font class="small">Code:</font><hr /><pre>Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "control.exe ncpa.cpl"</pre><hr />
A good rule of thumb is to never measure with your thumb.