12 years ago
Trying to find a string that's within an object's child
Hi,
I'm trying to recognize an installer window by trying to find a string that's within the child of that window object. Here is my code so far:
If not Sys.Process("msiexec", 2).Find("*", "Wizard") = false Then
showmessage "found"
Else
showmessage "not found"
End If
thanks for any help
I'm trying to recognize an installer window by trying to find a string that's within the child of that window object. Here is my code so far:
If not Sys.Process("msiexec", 2).Find("*", "Wizard") = false Then
showmessage "found"
Else
showmessage "not found"
End If
thanks for any help
- The first parameter of Find method is property name (http://support.smartbear.com/viewarticle/30995/), so you should use something like "WndCaption". Also if the window you are looking for is the immediate child of Process then you can use WaitWindow method.