NOTICE: Our Community is moving. Get more information. Updated information on a New Login Process
On upgrading to Silk Test 15.0+ my existing Silk Test Classic scripts now throw the error, "The method GuiTestObject::GetHandle is not supported for the desktop object.".
The above error is most commonly observed when a Silk Test Classic framework uses one of the following dll functions:
Previously in the Classic Agent it was recommended to use the following approach similar to the following when calling ShellExecute:
ShellExecuteW(Desktop.GetHandle( ), "open", "myApp.exe", "-param", "C:\AUT_Dir\", 5)
As the GetHandle( ) is no longer automatically routed to the Classic Agent, it is recommended to replace the Desktop.GetHandle( ) value with 0. For example:
ShellExecuteW(0, "open", "myApp.exe", "-param", "C:\AUT_Dir\", 5)
Using the value 0 tells the ShellExecute statement that the command being invoked is not associated with a window, which has the same desired effect as using Desktop.GetHandle( ).