DIV and span tags - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: DIV and span tags (/Thread-DIV-and-span-tags) |
DIV and span tags - techvas - 06-11-2013 Hi, Good morning. I am new to QTP. I got the following html code snippet. How can i extract the span tag values under div and ul tags in the following formats. HTML code: Code: <div id=firstheader> HEADER1value </div> How can i print the values in the following format???? HEADER1Value column1 --- 7 column2 --- 8 column3 --- 9 column4 --- 10 HEADERSECOND value123 -- 123 value124 -- 124 value125 -- 125 value126 -- 126 its urgent.Your help will be greatly appreciated. Thanks you . vas. RE: DIV and span tags - techvas - 06-11-2013 Guys, can you please help some one. Thanks. More info the web page build with jquery framework. RE: DIV and span tags - Ankur - 06-12-2013 If you're using QTP 11 or UFT 11.5, your job has become a tad easier. Use CSS object identification method. RE: DIV and span tags - techvas - 06-12-2013 Ankur, Can you please provide me code. Also we are using QTP 10. Thank you, RE: DIV and span tags - Ankur - 06-21-2013 I hope you were able to solve this, in case not here is a snippet to get percentage - Code: Set oPercentage = Description.Create RE: DIV and span tags - benjwal - 06-20-2015 ---------------------------- Dear Ankur, You solution worked. Thank you! I am able to go to all the span in the div and pick up values in my case how do I go further and then pick values. Can you help me with some guidance on how to pick up the anchor values inside and anchor in a div. and a span. code from where to capture is as below. I wish to capture Code: sip="ABenjwal@uk.com" RE: DIV and span tags - supputuri - 06-24-2015 you can use combination of GetRoProperty and split to achieve this. Please let me know if you need a snippet. |