How to double click on a image in webpage through QTP?

2,188 views
Skip to first unread message

Jitender kumar

unread,
Apr 23, 2008, 1:26:08 AM4/23/08
to Mercu...@googlegroups.com
Hello Friends,
 
I am working on browser base project and in this project I am getting few problem, they are below...
 
1. I want to double click on an image, for I try to use dblclick function in webpage but it is showing error "Object doesn't support this property or method".
 
Browser("Compose Mail - Yahoo!").Dialog("#32770").Page("Kiwee - Free MySpace Graphics").Image("Wink").dblclick
 
2. same erorr is showing when I am using micTab function in it.
 
Browser("Compose Mail - Yahoo!").Dialog("#32770").Page("Kiwee - Free MySpace Graphics").Image("Wink").type micTab
 
 
To make a script both function should be run at webpage. so any one can help me regarding this.
 
Thanks in Advance
 
Jitender Kumar
 
 
 
 

Rekha Manoj

unread,
Apr 23, 2008, 6:05:18 AM4/23/08
to Mercu...@googlegroups.com
Hi
 
When u record the same line.
 
I mean when u Double click on that Image .what u observed same line like this or
 
Browser("Compose Mail - Yahoo!").Dialog("#32770").Page("Kiwee - Free MySpace Graphics").Image("Wink").dblclick
 OR
 
Browser("Compose Mail - Yahoo!").Dialog("#32770").Page("Kiwee - Free MySpace Graphics").Image("Wink").Click.
 
Actually it will support those methods and Properties by default
 
Browser("Compose Mail - Yahoo!").Dialog("#32770").Page("Kiwee - Free MySpace Graphics").Image("Wink")
 
after clicking "."

Shirish K

unread,
Apr 23, 2008, 7:27:03 AM4/23/08
to Mercu...@googlegroups.com
Try

Browser("Compose Mail - Yahoo!").Dialog("#32770").Page("Kiwee - Free MySpace Graphics").Image("Wink").FireEvent "ondblclick"

-shirish

Ahamed Saifudeen

unread,
Apr 23, 2008, 7:32:02 AM4/23/08
to Mercu...@googlegroups.com
Hi All,

Image control does not have "Double Click" Event.

- Saif

Jitender kumar

unread,
Apr 23, 2008, 6:16:32 AM4/23/08
to Mercu...@googlegroups.com
thanks for your response, when i record script it record like this

Browser("Compose Mail - Yahoo!").Dialog("#32770").Page("Kiwee - Free MySpace Graphics").Image("Wink").Click

actually I double click on image but it always show click in script





2008/4/23 Rekha Manoj <rekha.k...@gmail.com>:

srinivasa chari

unread,
Apr 23, 2008, 7:23:15 AM4/23/08
to Mercu...@googlegroups.com

Hi jitender,
                please try this (and correct me if i am wrong).
solution 1: Go to Tools-->Web event recording configuration-->a window will be opened-->click on custom settings-->another window will be opened-->select Image in the list of web objects(in left pane)-->click on event-->click on Add-->click on dblclick -->click ok button    
solution 2: create a virtual object for image as virtual button or virtual object so that double click can be performed.(By nature dblclick is supported by the Activex,vb,standard windows only).

i feel solution 1 is the best

Regards
chary

srinivasa chari

unread,
Apr 23, 2008, 8:13:19 AM4/23/08
to Mercu...@googlegroups.com

Jitender kumar

unread,
Apr 23, 2008, 8:24:26 AM4/23/08
to Mercu...@googlegroups.com
Hello Friends,

Thanks for all your support specially Chary,

Chary,  your 1st solution is working fine.

Thanks again

Jitender Kumar



2008/4/23 srinivasa chari <k.sriniv...@gmail.com>:

saheed kumar

unread,
Feb 20, 2013, 7:13:01 AM2/20/13
to mercu...@googlegroups.com
Hi

you can try with this :
Browser("IE").Page("Gas Mileage Calculator").Image("Calculate").Click
Browser("IE").Page("Gas Mileage
Calculator").Image("Calculate").fireevent ondblclick

On 2/20/13, vasantha marimuthu <c.m.va...@gmail.com> wrote:
> Hi,
>
> am new to QTP, i have an click event for a image,while clicking on this it
> should calculate something,it says that image exist, but the click event is
>
> not working.
>
> can anyone help me plz.
>
> Browser("IE").Page("Gas Mileage Calculator").Image("Calculate").Click
>
> Thanks in Advance,
> Vasantha
>
>
>
> On Wednesday, April 23, 2008 8:24:26 AM UTC-4, Jit wrote:
>
>> Hello Friends,
>>
>> Thanks for all your support specially Chary,
>>
>> Chary, your 1st solution is working fine.
>>
>> Thanks again
>>
>> Jitender Kumar
>>
>>
>>
>> 2008/4/23 srinivasa chari <k.sriniv...@gmail.com <javascript:>>:
>>
>>> Hi jitender,
>>> please try this (and correct me if i am wrong).
>>> solution 1: Go to Tools-->Web event recording configuration-->a window
>>> will be opened-->click on custom settings-->another window will be
>>> opened-->select Image in the list of web objects(in left pane)-->click on
>>>
>>> event-->click on Add-->click on dblclick -->click ok button
>>> solution 2: create a virtual object for image as virtual button or
>>> virtual object so that double click can be performed.(By nature dblclick
>>> is
>>> supported by the Activex,vb,standard windows only).
>>>
>>> i feel solution 1 is the best
>>>
>>> Regards
>>> chary
>>>
>>>
>>>
>>
>
> --
> --
> 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 Mercu...@googlegroups.com
> To unsubscribe from this group, send email to
> MercuryQTP+...@googlegroups.com
> 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 mercuryqtp+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
Reply all
Reply to author
Forward
0 new messages