Hello,
I have a requirement where i have to double click a row of a webtable. I
took x and y co-ords of the row and simulated the method of MousedblClick.
It works perfectly on my local machine but when I try to run the same on
server machine I see that doubleclick is not working. Please let me know
if you have any suggestions.
Thank you
On Tuesday, March 25, 2008 9:49:49 AM UTC-4, Roman Zilber wrote:
> *To Capture mouse event Using **Device* *replay*
>
> The *Device* *replay* feature is used to perform mouse and keyboard
> actions against screen coordnates that are provided. The *Device* *replay*
> functions are not automatically recorded, but must be programmed manually
> in the Expert View.
>
> *Note:*
> As this is an undocumented feature, you should be aware that there is no
> guarantee that it will exist or function the same way in future releases of
> QuickTest Professional.
>
> 1. Create the *Device* *replay* Object.
>
> *Example:*
> Set *Device**replay* = CreateObject("Mercury.*Device**replay*")
>
> 2. Call the desired *Device* *replay* function.
>
> *Example:*
> *Device**replay*.SendString("Hello, World")
>
> 3. When done with the *Device* *replay* object, release it.
>
> *Example:*
> Set *Device**replay* = Nothing
>
> The functions that can be used with the *Device* *replay* object are (all
> coodinates are relative to the top left corner of the screen):
>
> *Function*
>
> *Description*
>
> MouseMove *x, y*
>
> Move the mouse to the screen coordinate (x,y).
>
> MouseClick *x, y, button*
>
> Move the mouse to the screen coordinate (x,y) and click the button
> (0=left; 1=middle; 2=right).
>
> MouseDblClick *x, y, button*
>
> Move the mouse to the screen coordinate (x,y) and double-click the button
> (0=left; 1=middle; 2=right).
>
> DragAndDrop *x, y, dropx, dropy, button*
>
> Drag the mouse from screen coordinate (x,y) to (dropx,dropy) with the
> button
> (0=left; 1=middle; 2=right) pressed.
>
> PressKey *key*
>
> Press a key using the ASCII code of the key.
> For example, Chr(13), vbCR and vbTab.
>
> MouseDown *x, y, button*
>
> Press the mouse button on screen coordinate (x,y).
>
> MouseUp *x, y, button*
>
> Release the mouse button on screen coordinate (x,y).
>
> KeyDown *key*
>
> Press a key using the ASCII code of the key.
> For example, Chr(13), vbCR and vbTab.
>
> KeyUp *key*
>
> Release a key using the ASCII code of the key.
> For example, Chr(13), vbCR and vbTab.
>
> SendString *string*
>
> Type a string.
>
> Using *Device* *replay* *Device**replay*
>
>
> *---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
>
>
>
>
> On Mon, Mar 24, 2008 at 7:07 PM, Kandy <[email protected] <javascript:>>
> wrote:
>
>>
>> set replay settings to false and then use mousemove operations. After
>> you are done, reset replay settings to true.
>>
>> Look in to the readme document...
>>
>>
>> On Mar 5, 11:06 am, "Roman Zilber" <[email protected]> wrote:
>> > Hi All,
>> >
>> > I have a problem with
>> >
>> > WinObject(...).Drag x1, y1
>> > WinObject(...).Drop x2, y2
>> >
>> > When I ran to the same problems with Winrunner, I've used analog
>> functions,
>> > such as type(), mtype()... is there way to do it in QTP?
>> >
>> > Thanks,
>> >
>> > Roman
>>
>>
>>
>
--
--
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/d/optout.