12-16-2008, 04:45 AM
Hi,
I am currently using QuickTest v9.5 and have created scripts for a Java applet application. In the application, I am attempting to clear the default value ('0.00') of a java edit box that is contained within a java table. I can type a new value into the java edit box, but the new
value is typed at the end of the default value which is not what I wanted. The java edit box is only activated after a click, hence it is not captured during record/playback.
I am accessing the edit box via the row no and column no's of the java table.
CODE SNIPPET
Line# 1:
Line# 2:
Line# 3 :
Line# 4:
SOLUTIONS I HAVE ATTEMPTED IN TRYING TO CLEAR DEFAULT VALUES
Solution #1: SetCellData
Result: Unspecified Error
Solution #2: Type micBack three times before line # 3
Result: nothing happens
Solution #3: Defined the edit box object in the Object Repository and attempted to activate the edit box
Result: Run error, cannot identify the object
Solution #4: PressKey "X", micCtrl before line # 3
Result: nothing happens
Solution #5: Adding SelectCell after click cell
Result: Operation cannot be performed
Would very much appreciated any other suggested solutions that I can try.
THANK YOU!
I am currently using QuickTest v9.5 and have created scripts for a Java applet application. In the application, I am attempting to clear the default value ('0.00') of a java edit box that is contained within a java table. I can type a new value into the java edit box, but the new
value is typed at the end of the default value which is not what I wanted. The java edit box is only activated after a click, hence it is not captured during record/playback.
I am accessing the edit box via the row no and column no's of the java table.
CODE SNIPPET
Line# 1:
Code:
Browser(DataTable.Value("envlbl", dtGlobalSheet)).Page(DataTable.Value("envlbl", dtGlobalSheet)).ActiveX("Java
Plug-in").JavaApplet("ICFMApplet").JavaDialog("Timeseries data").JavaTable("Select data entry method:_Vol").ActivateRow "#0"
Line# 2:
Code:
Browser(DataTable.Value("envlbl", dtGlobalSheet)).Page(DataTable.Value("envlbl", dtGlobalSheet)).ActiveX("Java
Plug-in").JavaApplet("ICFMApplet").JavaDialog("Timeseries data").JavaTable("Select data entry method:_Vol").ClickCell 0,3
Line# 3 :
Code:
Browser(DataTable.Value("envlbl", dtGlobalSheet)).Page(DataTable.Value("envlbl", dtGlobalSheet)).ActiveX("Java
Plug-in").JavaApplet("ICFMApplet").JavaDialog("Timeseries data").JavaTable("Select data entry method:_Vol").Type "123"
Line# 4:
Code:
Browser(DataTable.Value("envlbl", dtGlobalSheet)).Page(DataTable.Value("envlbl", dtGlobalSheet)).ActiveX("Java
Plug-in").JavaApplet("ICFMApplet").JavaDialog("Timeseries data").JavaTable("Select data entry method:_Vol").Type micReturn
SOLUTIONS I HAVE ATTEMPTED IN TRYING TO CLEAR DEFAULT VALUES
Solution #1: SetCellData
Result: Unspecified Error
Solution #2: Type micBack three times before line # 3
Result: nothing happens
Solution #3: Defined the edit box object in the Object Repository and attempted to activate the edit box
Result: Run error, cannot identify the object
Solution #4: PressKey "X", micCtrl before line # 3
Result: nothing happens
Solution #5: Adding SelectCell after click cell
Result: Operation cannot be performed
Would very much appreciated any other suggested solutions that I can try.
THANK YOU!