hi Amit,
you can capture this with one table cells and filter the numeric
value through split function. follow this code
Set myp=browser("name:=Mortgage Calculator.*").page("title:=Mortgage
Calculator.*")
a=myp.webelement("outertext:=.*Monthly Payment","html
tag:=TD","innerhtml:=<H3>.*</H3>Monthly
Payment","index:=0").GetROProperty("innertext")
msgbox a
a=split(a, " ")
msgbox a(0)
Thanks
Akhalesh
On Thu, Sep 6, 2012 at 10:51 AM, Amit Raj <[email protected]> wrote:
> Hi,
>
> Still I can't solve this problem as the adjecent WebElement has almost all
> the ordinal properties similar, and If i go with the XY Co-ordinates, it's
> XY co-ordinates are dynamics.
>
> Please see the screen grab attached and if possible go to the URL in the
> screen grab and try it.
>
> And let me know your findings.
>
> Hope to hear from you on this.
>
> Thanks,
> Amit Raj
>
>
> On Wednesday, 5 September 2012 13:43:48 UTC+5:30, Akhalesh Yadav wrote:
>
>> Use ordinal identifier such as index
>>
>> Browser("name:=.*).Page("**Title:=.*).WebElement("name:=**
>> text1","index:=0").**GetRoPropertiy("innertext")
>>
>> Hope it will be work properly so check it.......
>>
>> Thanks
>> Akhalesh
>> 9555717928
>>
>>
>> On Wed, Sep 5, 2012 at 9:56 AM, Amit Raj <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I am trying to get innertext from a WebElement and this WebElement has
>>> similar properties to other WebElements and I can't go with the XY
>>> Co-ordinates as each time page loads the XY Co-ordinates gets change.
>>>
>>> So if anyone can provide any solution to this problem, that would be a
>>> great help.
>>>
>>> Browser("name:=.*).Page("**Title:=.*).WebElement.**
>>> GetRoPropertiy("innertext")
>>>
>>> Hope to get a precise solution for this issue.
>>>
>>> Regards
>>> Amit Raj
>>>
>>> --
>>> 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
>>> MercuryQTP+...@**googlegroups.com
>>>
>>> For more options, visit this group at
>>> http://groups.google.com/**group/MercuryQTP?hl=en<http://groups.google.com/group/MercuryQTP?hl=en>
>>>
>>
>>
>>
>> --
>> Akhalesh yadav
>> +919555717928
>> +919310680659
>>
> --
> 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
>
--
Akhalesh yadav
+919555717928
+919310680659
--
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