--
--
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 Mercu...@googlegroups.com
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
---
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 mercuryqtp+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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