Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get value from table out of a website
#1
Not Solved
Hi at all,
i have a big problem. I have searched for a solution the last 3 weeks but i didn't find one.

What is my problem?
I must get a value out of a website. The value is in a large table.
Here is an example HTML table:
Code:
<table>
  <tbody>
    <tr>
      <td class="desc">OS</td>
      <td>Ubuntu</td>
    </tr>
    <tr>
      <td class="desc">Version</td>
      <td>V1.12.34</td>
    </tr>
    <tr>
      <td class="desc">Size</td>
      <td>573 Bytes</td>
    </tr>
  </tbody>
</table>

I only need the Version "V1.12.34".


I hope someone can help me.

Greetings from Germany
Flooole
Reply
#2
Not Solved
Please Object Spy your Object and give us its properties. It might be helpful.

Or try this :

1. Try to find out the any near by object of "v1.12.34" by using QTP's OR or DP.
2. Then u can use DOM to retrieve the required value.
Reply
#3
Not Solved
Here are the properties of the Object Spy.
[Image: qke23alk.png]
Reply
#4
Not Solved
Is ur application is a web based or windows application.

By looking at the properties u provided, it seems to be Windows application.

If it is a Web application then you are missing required Add-In.

Please provide proper details or information along with screen shot so that we can help you in getting a solution.
Reply
#5
Not Solved
My application is a web based application. It's a PHP-website.
Which add-in do I need?

Here is the whole website source code:
Code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Unbenanntes Dokument</title>
<style>
    table tr td {
        padding: 10px;
    }
</style>
</head>

<body>
    <table>
        <tbody>
            <tr>
                <td class="desc">Software-Paket</td>
                <td>login.db.prod</td>
            </tr>
            <tr>
                <td class="desc">Version</td>
                <td>V1.15</td>
            </tr>
            <tr>
                <td class="desc">Paketgr&ouml;&szlig;e</td>
                <td>473 Bytes</td>
            </tr>
        </tbody>
    </table>
</body>
</html>
Reply
#6
Not Solved
Floole -
If you spy it should probably identify the object as a webtable or a variant of the table. What does it identify as?

I wasn't able to view the spy properties. Would you mind putting up the object description from the spy? Like Class of the object.

Verify if you have selected Web-Addin. Also, ensure you have opened QTP first and then the application.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#7
Not Solved
Hello basanth27,
here are the important spy properties:
  • Class Name: WinObject
  • nativeclass: Internet Explorer_Server
  • object class: Internet Explorer_Server
  • regexpwndclass: Internet Explorer_Server

Where can I download the Web-Addin?

I opened QTP as first because the browser is opened by QTP.
Reply
#8
Not Solved
No Need download Web Add-In. It is a default one.

Once you launch QTP, It will ask to select the required Add-In's. Select Web Add-In.

Also let us know Which version of QTP and IE you are using.
Reply
#9
Not Solved
Hello ssvali,
the Web Add-In is and was selected. I use QTP 11 and IE 8.
But QTP is on another PC than HP QC.

And now I have another big problem... After I start QTP I get the message in the picture:
Errormessage

The message is displayed after the login.
Reply
#10
Not Solved
OK, now I solved the second problem. I have installed a new OS (Windows XP - SP 3).

But what can I do to solve my first problem?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Menu is not displayed on the website to run QTP 11 jacosta 1 2,545 10-02-2012, 08:47 PM
Last Post: freeboynil
  Check all links of a website sia sharma 1 2,765 06-21-2012, 03:36 PM
Last Post: ssvali
  Error opening the sample Mercury tours website akilashanmugam 0 2,780 06-15-2012, 04:43 PM
Last Post: akilashanmugam
Sad Mecury Tours Website suspended uherch 1 3,445 05-10-2012, 08:41 PM
Last Post: defcon3
  Problems with recording a website bend0303 5 3,844 01-12-2012, 02:55 PM
Last Post: ravi.gajul

Forum Jump:


Users browsing this thread: 4 Guest(s)