Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting a cell from Javatable at RUN time
#1
Not Solved
Hi All,

I have a javatable.After searching for a text in the table,for the row where I have found the text,I want to select its column(which is basically a button),but I am unable to do so.
I havw written following code.

Code:
intSchCount =  JavaWindow("EclipseEJ").JavaDialog("Online Credit Agreement").JavaTable("Select products:").GetROProperty("rows")

Scheme = DataTable("Scheme",dtLocalSheet)

For i = 0 to intSchCount-1
Sch=JavaWindow("EclipseEJ").JavaDialog("Online Credit Agreement").JavaTable("Select products:").GetCellData(i,"A")
                    
If (Sch=Scheme) then
JavaWindow("EclipseEJ").JavaDialog("Online Credit Agreement").JavaTable("Select products:").SetCellData "#i","C","1"
                               Exit for
end if
Next


**************************

I am getting following error:
The operation cannot be performed
Line (126):
Code:
"JavaWindow("EclipseEJ").JavaDialog("Online Credit Agreement").JavaTable("Select products:").SetCellData i,"C","1"".
**********************************

What wrong am I doing?What is the other way to select the column?[/align]
Reply


Messages In This Thread
Selecting a cell from Javatable at RUN time - by arjun.singh - 11-20-2009, 12:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Access to JavaCombobox in JavaTable cell? jarkkop 2 3,433 10-17-2018, 09:32 PM
Last Post: riyaz
  Set Value in JavaEdit Inside JavaTable yonobev 9 11,780 11-08-2017, 11:12 PM
Last Post: lotos
  Want to read the data from excel and set read value in the JavaTable rajeevk7 0 2,165 07-10-2017, 04:20 PM
Last Post: rajeevk7
  Working on javatable reddyraam10 0 1,586 02-07-2017, 08:12 AM
Last Post: reddyraam10
  QTP not selecting appropriate webelement from the webtable..Need Solution satishkumarm 11 21,040 03-23-2016, 12:47 PM
Last Post: Swetha_Bayya

Forum Jump:


Users browsing this thread: 2 Guest(s)