Hi Lalit,

Let me wish you first Happy Diwali :).

Now answer to your problem can be as below:

If all are webelements inside the table then you can use Object.object 
property of an object in QTP.

You can retrieve the webelement of the WebTable and use its Object property 
which provides you access to use DOM properties of the any webelement.

This following example will help you understand this.

Create an html file with below code:

<html> <head> <style type="text/css"> h1 { text-align:center; } p.date { 
text-align:right; } p.main { text-align:justify; } </style>

</head>

<body> <h1>CSS Align test</h1> <p class="date">May, 2009</p> <p 
class="main">In my younger and more vulnerable years my father gave me some 
advice that I've been turning over in my mind ever since.</p> 
<p><b>Note:</b> Try to resize the browser window to see how justify 
works.</p> </body>

</html>

Open the html file and then add the objects to OR.

Associate this with script.

Now in script call below statement.

MsgBox Browser("").Page(""). WebElement("html tag:=P", "innertext:=May, 
2009").Object.CurrentStyle.textAlign

This will display the alignment.

Thank you!!!

Regards, Shantanu


On Friday, 1 November 2013 11:20:55 UTC+5:30, Lalit Aggarwal wrote:
>
> Hi All,
>
> I need to check the alignment of all the data inside the webtable,
> I am able to get the data from each row and column, but i am not able to 
> get the RO property of any element (data) in side the webTable
> Could anyone please help me in that?
>
> Regards,
> Lalit Aggarwal
>

-- 
-- 
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.

Reply via email to