Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get multiline text in a cell of a Wetable
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,
Can u help me in how to get multiline texts in a cell of Webtable.Example would be,if a cell contains the below texts in a cell:-

Andrea Thomas
Tom Bell Zanny
Cean Dias

Then how do I extract the three different names in seperate variable.

I have used GetCelldata(row,column).But GetCellData returns a string in format "Andrea Thomas Tom Bell Zanny Cean Dias".

Using Split will return each word seperately.

Thanks,
Satya
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hello Satya,

You can use the following code to fetch the data :

Code:
Browser().Page().WebTable().Childitem(row,col,"MicClass",Index).GetROProperty("innertext")

e.g.
Code:
item1=Browser().Page().WebTable().Childitem(1,2,"Link",0).GetROProperty("innertext")

item2=Browser().Page().WebTable().Childitem(1,2,"Link",1).GetROProperty("innertext")

item3=Browser().Page().WebTable().Childitem(1,2,"Link",2).GetROProperty("innertext")
Hope this solves ur problem Smile

Regards,
Parminder
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,893 09-13-2015, 12:06 AM
Last Post: ADITI1992
  I am trying to extract text from a webelement but it is generating blank text scenari excellentpawan 2 4,663 08-13-2013, 08:37 PM
Last Post: excellentpawan
  QTP-Flash Wetable - Flex3.0.0 swetha.b 4 3,555 12-23-2012, 03:38 AM
Last Post: kamalteja
  how to find a particular text in a text string pjavvaru 3 17,061 06-04-2010, 08:49 PM
Last Post: jsknight1969
  Retrieve text from Text Checkpoint Amit Singh Chauhan 1 2,504 08-20-2009, 07:15 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)