yaar direct code use kr ke check karo.... i didn't get tym to debug dis just
written and mailed in the morning....
in any case u just need to capture the element property from any page... you
can do this wat ever way u want....

I'll try to work on dis wen gets tym and update you..


Regards
Shalabh Dixit



On Fri, Sep 9, 2011 at 1:20 PM, santhosh Ganji <
[email protected]> wrote:

> Hi Shalab,
> Thank you for the reply.
>
> Sorry yaar, It didn't solved my problem...
>
> Set obj=Browser(str_BrowserName).Page(str_PageName).str_ElementType & "(" &
> str_ElementName & ")"
> I am getting error at this line...
> And I used directly *Image insteadof str_ElementType* its directly
> clicking on the image, The right click operation is not working.
>
> Thanks for your effort.
>
>
>
> On Fri, Sep 9, 2011 at 12:09 PM, Shalabh Dixit <[email protected]>wrote:
>
>> Try this...
>>
>> *'Sample Example of Function Usage *
>> str_Browser = "Browser"
>> str_Page = "Welcome: Mercury Tours"
>> str_ElementType = "Image"
>> str_ElementName = "hdr_right"
>> MouseClick str_Browser,str_Page,str_ElementType,str_ElementName,2,2
>>
>>
>>
>> 'Function Details
>> '<Name>MouseClick</Name>
>> '<Description> This function to perform any type of mouse click operation
>> '<Parameters>
>>     '---------------------------------------------
>>     'str_ElementName = Value of "WebElement" in the OR
>>     '---------------------------------------------
>>     'str_BrowserName = Value of "Browser" in the OR
>>     '---------------------------------------------
>>     'str_PageName = Value of "Page" in the OR
>>     '---------------------------------------------
>>     'Possible Values for "str_ElementType"
>>     'a.Image
>>     'b.Link
>>     'c.WebEdit
>>     'd.WebTable
>>     '---------------------------------------------
>>     'Possible Values for "mouseClickOperationType"
>>     'a.1 - MouseSingleClick (Single Click)
>>     'b.2 - MouseDblClick (Double Click)
>>     '---------------------------------------------
>>     'Possible Values for "mouseButtonName"
>>     'a.1 - LEFT_MOUSE_BUTTON
>>     'b.2 - MIDDLE_MOUSE_BUTTON
>>     'c.3 - RIGHT_MOUSE_BUTTON
>> '</Parameters>
>> Function
>> MouseClick(str_BrowserName,str_PageName,str_ElementType,str_ElementName,mouseClickOperationType,mouseButtonName)
>>     Set obj=Browser(str_BrowserName).Page(str_PageName).str_ElementType &
>> "(" & str_ElementName & ")"
>>
>>     x_coord=obj.GetROProperty("abs_x")
>>     y_coord=obj.GetROProperty("abs_y")
>>
>>     Set dr=createobject("Mercury.DeviceReplay")
>>     offset_x=5
>>     offset_y=5
>>     If mouseClickOperationType = 1 Then
>>         dr.MouseClick x_coord,y_coord,mouseButtonName
>>     Else
>>     If mouseClickOperationType = 2 Then
>>         dr.MouseDblClick x_coord,y_coord,mouseButtonName
>>     End If
>> End Function
>>
>>
>>
>>
>> Regards
>> Shalabh Dixit
>>
>>
>>
>>
>> On Fri, Sep 9, 2011 at 6:28 AM, Roman Zilber <[email protected]> wrote:
>>
>>> about Num 2. Check the help for .Click function and .FireEvent
>>>
>>>
>>> On Thu, Sep 8, 2011 at 6:42 AM, santhosh Ganji <
>>> [email protected]> wrote:
>>>
>>>> Hi Friends,
>>>>
>>>> 1)
>>>> I am facing a problem to complete one scenario...
>>>> In my scenario i need to click on notification area...
>>>> I have created window object and toolbar object by using description
>>>> object method
>>>> but unable to click on the notification area....
>>>>
>>>> 2)
>>>> One more that
>>>> how to right click on the webimage...and how to automate the menu -
>>>> which comes after right click on the web page??
>>>>
>>>>
>>>>
>>>> Could any one help me
>>>>
>>>> Thanks in advance.
>>>>
>>>> --
>>>> 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
>>> "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
>> "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
>>
>
>
>
> --
> Thanks and Reagards
> Santhosh G
> +918007850250
>
>
>  --
> 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
"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

Reply via email to