Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Webtable().GetCellData() Returns hidden values of Cells
#1
Not Solved
I am trying to retrieve values of cells from a webtable using GetCellData() method but it returns hidden values of cells also.

Is there any method to get only visible values of a Web Table.

Code:
RwCount=Browser("xyz").Page("abc").WebTable("table1").RowCount
For i=1 to RwCount    
ColCount=Browser("xyz").Page("abc").WebTable("table1").ColumnCount(i)
     For j=1 to ColCount
       iValue=Browser("xyz").Page("abc").WebTable("table1").GetCellData(i,j)
Print iValue
Next
Next
Thanks in advance
Reply
#2
Not Solved
What you get when you spy over that particular table
Reply
#3
Not Solved
I have a issue related to this

I need to click on a link in the webtable if it exist else click on a link to go back to the search page.

I wrote the code elow
Code:
Set WebLinkObj = Browser("").Page("").WebTable("").ChildItem(2,2,"Link",0)
    If WebLinkObj.Exist(5) then
       WebLinkObj.Click

      else
         Browser("").Page("").Link("").Click
       end if

Note: There is gonna be only one link in the webtable. Please help
Reply
#4
Not Solved
@kawsar : What's the error you're getting? Also please out your code in the code tags for better formatting See the help section https://www.learnqtp.com/forums/misc.php...help&hid=7
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#5
Not Solved
I am not getting any error. The script does not seem to recognize the else statment.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to identify controls embedded within WinListView cells Devesh Thakur 5 2,886 04-19-2018, 10:56 AM
Last Post: Devesh Thakur
Toungue how to get values of childItem of a webtable caze 17 119,689 11-06-2017, 01:05 PM
Last Post: sivaji
  Link in a webtable in a webtable Soulwalker 1 2,865 07-19-2017, 01:44 PM
Last Post: Ankur
  DataGridTemplateColumn's cells cannot be edited... asaf_bitton 3 3,786 10-02-2014, 05:36 PM
Last Post: krupaluk
  Webtable actions are not getting recorded, but ObjectSpy is able to identify webtable sahilarora2000 2 3,935 06-13-2014, 04:27 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)