Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
javalist
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi
I have a requirement in my testcase. I have an applicaton with Java applets and I want to select the 2nd row in the list but not able to get .
code is as follows

Code:
JavaWindow("Client Information System").JavaInternalFrame("Valid values for Status").JavaTable("Table[]_3").ActivateCell "1","8"

The second row value is now 11119 and it is hardcoding the value,but next iteration the value will be changed so it give an error
I want to select the second row not the with the value
Code:
'JavaWindow("Client Information System").JavaInternalFrame("Court Order Detail Related").JavaList("Find").Select "11119"

Any suggestion please

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

For JavaList object, We can Specify index values using the format "#N" where N is the numeric index. Index values begin with 0.

Example:(Select 2nd item in JavaList which is in index 1)
Code:
JavaWindow("Client Information System").JavaInternalFrame("Court Order Detail Related").JavaList("Find").Select "#1"
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,

To select the 2nd row value you could use
Code:
Object.SelectCell (Row,ColumnName)

Regards,
Venkat.Batchu
Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
Thanks very much it worked
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  JavaList select? riechan 1 6,075 08-03-2012, 12:58 PM
Last Post: Shridevi.Salagare
Shy Disabled items in a JavaList () AnkitaSinha 1 3,876 07-27-2011, 09:04 AM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)