Try getting handle for your footer using spy++ or similar tools.
hWnd=//write your function to get handle for footer.
Extern.Declare micLong, "GetWindowText", "user32.dll", "GetWindowTextA",
micHwnd, micString + micByRef, micLong
retVal = Extern.GetWindowText (hWnd, txt, 256)
MsgBox txt
----------------
Similar example given in QTP help File to work with windows internal dlls
Extern.Declare micHwnd, "FindWindow", "user32.dll", "FindWindowA",
micString, micString
hwnd = Extern.FindWindow("Notepad", vbNullString)
MsgBox hwnd
' The following example demonstrates how to call the GetWindowText function
from "user32.dll."
Extern.Declare micLong, "GetWindowText", "user32.dll", "GetWindowTextA",
micHwnd, micString + micByRef, micLong
hWnd = Browser("micclass:=Browser","Index:=0").GetROProperty ("hwnd")
MsgBox hWnd
retVal = Extern.GetWindowText (hWnd, txt, 256)
MsgBox txt
On Tuesday, September 24, 2013 1:06:47 PM UTC+5:30, siva -QA wrote:
>
> when seeing the attachment, the footer is looking as webtable , so if it
> is webtable , use descriptive programming and used the method GetCellData
>
> Eg:CellData = Browser("Browser").Page("Page").WebTable("html
> tag:=TABLE").GetCellData(1,1)
>
>
> On Tue, Sep 24, 2013 at 10:40 AM, Omprakash P <[email protected]<javascript:>
> > wrote:
>
>> I Checked like that also(Checking through OR) Text field showing null
>> value.
>>
>>
>> On Friday, September 20, 2013 12:27:25 PM UTC+5:30, Omprakash P wrote:
>>>
>>> Hi,
>>>
>>> i am unable to spy the object . if i am trying to spy it is showing
>>> total footer as a single object.
>>>
>>> And also i am trying to get the text value, it is giving null value.
>>>
>>> i want to retrieve some text from footer..
>>>
>>> that text is dynamically generated from database according to User.
>>>
>>> How to retrieve the text .
>>>
>>> please any one help to me.
>>>
>>> Thanks,
>>>
>>> Omprakash
>>>
>> --
>> --
>> 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]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
--
--
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.