Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP - Webtable().GetCellData() returns unknown symbols and spaces
#1
Not Solved
I have tried to retrive the values from the web table using the Getcelldata method, but it is showing values along with blank spaces and symbols in between them. But i want it to display only the values and no spaces, extra symbols...

The symbol which is getting displayed in between the values is the small box like one which we get when we copy paste spaces..

Even I have tried replace method, but it doesn't worked out.

I am using the chrome browser for testing.

The following is the piece of code which i used,


Code:
RwCount=Browser("xyz").Page("abc").WebTable("table1").RowCount
ColCount=Browser("xyz").Page("abc").WebTable("table1").ColumnCount(1)
Print RwCount
Print ColCount
For i=1 to RwCount
    For j=1 to ColCount
        iValue=Trim(Browser("xyz").Page("abc").WebTable("table1").GetCellData(i,j))
        Print iValue
    Next
Next


Here with I have attached the results image..

Can anyone please tell me how to overcome this issue.?


Attached Files Image(s)
   
Reply
#2
Not Solved
Replace and Trim should work here, Can you paste how you tried?

Reply
#3
Not Solved
Use the replace with search string vbtab,vbcrln, vbln,vbcr,etc.. as thay may be line feed or tab, acarriage return...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Link in a webtable in a webtable Soulwalker 1 2,692 07-19-2017, 01:44 PM
Last Post: Ankur
  How to identify dynamic webtable as unique in QTP? sudheendramurthy 4 18,076 02-23-2016, 06:16 PM
Last Post: vinod123
  Getting 'Unknown runtime error' UFT_Newbie 3 5,378 09-08-2014, 07:07 PM
Last Post: UFT_Newbie
  Webtable actions are not getting recorded, but ObjectSpy is able to identify webtable sahilarora2000 2 3,628 06-13-2014, 04:27 PM
Last Post: vinod123
  QTP Unable to differentiate WebTable in Application - Solved EnthusiasticLearner 3 6,019 12-27-2013, 12:26 PM
Last Post: EnthusiasticLearner

Forum Jump:


Users browsing this thread: 1 Guest(s)