Micro Focus QTP (UFT) Forums
javalist - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: javalist (/Thread-javalist)



javalist - karraaruna - 11-20-2010

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,


RE: javalist - sreekanth chilam - 11-20-2010

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"



RE: javalist - venkatbatchu - 11-22-2010

Hi,

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

Regards,
Venkat.Batchu


RE: javalist - karraaruna - 11-23-2010

Thanks very much it worked