How to get a text from a list box,a cell from a table,and edit a text box?

Showing Answers 1 - 11 of 11 Answers

Sailesh

  • Jan 27th, 2006
 

Hi Mann,

1)To obtain a text from List box just select the range of items inthe list box and use GetSelection method along with the object name. You also have GetContent method to get all the items from the list.

2) To obtain a text from cell, Record: Click inside the cell and use GetROProperty("text") then you can see the text value. Same is the case with Table also.

kallol raha

  • Jul 19th, 2006
 

for cell in table

to get the text use .getcelldata method. u need to pass the row number and column number or name as arguments.

for list

use .getselection to get the text.

to edit a text box

use .type "whatever string u want to include"

  Was this answer useful?  Yes

akothuru

  • Jun 6th, 2008
 

Retrieve text from TextBox:
var_Text = Browser().Page().WebEdit().GetROProperty("value")

Retrieve text from ListBox
var_Text = Browser().Page().WebList().GetROProperty("value")

Retrieve text from Webtable/Datagrid
var_Text = Browser().Page().WebTable().GetCellData(rownumber,coulmnnumber)

  Was this answer useful?  Yes

kotike

  • Apr 15th, 2010
 

For getting text from listbox

<var>=Browser().page().WebLIstBox().GetItem(index)
msgbox var


For getting text from webtable

<var>=Browser().page().WebTable().GetCellData(row,column)
msgbox var


For getting text from editbox

<var>=Browser().page().WebEdit().GetRoProperty("text")
msgbox var

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions