Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working with Web Table
#1
Not Solved
I have a web table where I am trying to get the value from a cell A (weblist) based on the another cell B (WebEdit).

For Example:
If cell B value = "Working" then i want to get the cell value A.

Problem:

I can't retrieve the data using getcell data (rowno,colno). It's showing blank. I am trying something like given below. Can you please help me get the code corrected?

Code:
Set Table=Browser("browser").Page("page").Frame("frame1").WebTable("Status")
        a = table.RowCount
        For Iterator = 0 To a-1

            Set Table=Browser("browser").Page("page").Frame("frame1").WebTable("Status")
            Set Desc = Description.Create
            Desc("micclass").value="Weblist"
            Set Childobj=Table.ChildObjects(Desc)
            Childobj(Iterator).Highlight
            StrStatus = Childobj(Iterator).GetRoProperty("value")
                If StrStatus = "Working" Then
                     Set Table=Browser("browser").Page("page").Frame("frame1").WebTable("Status")
                     Set Desc = Description.Create
                    Desc("micclass").value="WebEdit"
                    Set Childobj=Table.ChildObjects(Desc)
                    Childobj(Iterator).Highlight
                     C = Table.GetRowWithCellText(StrStatus)
                     D = Table.Getcelldata(C,9)

                 End If
Next
Reply
#2
Not Solved
What does the Object spy look like? Attach and upload the screenshot here , so that we can have a look.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Not Solved

.zip   Desktop.zip (Size: 149.16 KB / Downloads: 107)
(05-26-2018, 05:12 PM)Ankur Wrote: What does the Object spy look like? Attach and upload the screenshot here , so that we can have a look.

Hi,
 I have attached the snapshot for your reference. point to note: when i add the object in OR its taking as Browser: Page: Frame: WebTable: Element

But when i spy the object, spy shows as Browser: Page: Frame: WebTable: Webtable: Element (One more webtable is added in the hierarchy).

I want to capture the Submission number when the status is "working".
Reply
#4
Not Solved
Please edit your post above and attach the screenshot inline. (Under Attachments heading, after uploading the image, click 'Add Attachment' on the right)
Reply
#5
Not Solved
           
















Admin Note: This is how we expected you to include and upload the attachments. We have gone ahead and done for you this time.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Set method not working for web number object Qtp_bunny 1 2,047 06-14-2018, 05:00 PM
Last Post: Ankur
  Retrieve row number from web table amilar 1 2,964 06-20-2012, 09:15 PM
Last Post: Surya
  SAPLIst within a table is not working lakshjai 1 5,649 02-18-2011, 02:19 AM
Last Post: shailendra.pathak
  Right Click on menu in Web Table brijesh_shivnani 1 3,982 04-12-2010, 10:31 AM
Last Post: Saket

Forum Jump:


Users browsing this thread: 2 Guest(s)