when object identification tool does not identity object inside an 
application it names object as winobject. you can not work with winobjects 
therefore 
1. please check the add-in requirement for your application
2. Open QTP first then an application 
3. clear temp directory, restart machine 
4. if none of above works; test on different machine with proper QTP 
installation and Add-in requirement 


On Thursday, March 21, 2013 7:34:09 AM UTC-4, hanae el.hammouti wrote:
>
>
>  How to resolve the error Statement contains one or more invalid function 
> arguments"
>
> Following are the properties of winobject  
> WindowsForms10.Window.8.app.0._2
> y=55
> x=11
>
> regexpwndclass= WindowsForms10.Window.8.app.0._2
> Object Class= WindowsForms10.Window.8.app.0._2
> nativeclass= WindowsForms10.Window.8.app.0._2
>
> Qtp version=11.0
> Please let me know how to resolve this issue.
>
>
>
> code : 'Script to invoke the Application
> 'Checking whether if it is opened
>
> If Not Window("Application for Windows").Exist(0) Then
> App_Path = "C:\Program Files (x86)\Application\Application.exe"
> InvokeApplication App_Path
> End If
>
> 'Script to open FM session
> Window("Application for Windows").Activate
> Window("Application for 
> Windows").WinObject("WindowsForms10.Window.8.app.0._2").Click 11,55
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to