01-28-2013, 11:29 AM
In the above line of code: 'RowNum' has been parameterized or regular expression been used.
i.e u can add the value to the 'RowNum' at the run time like below , it will work for all the values..
this is same as :
Ex2:
this is same as :
other question about INDEX:
this will set 'your value' into the first text box.
this is for second text box
Note: indexing starts from 0
Regards,
Harish
i.e u can add the value to the 'RowNum' at the run time like below , it will work for all the values..
Code:
RowNum = 1
Browser("User").Page("Field Activity").Frame("FA_TYPE_CHAR").WebEdit("FA_CHAR:"&RowNum&"$CHAR_VAL").Click
this is same as :
Code:
Browser("User").Page("Field Activity").Frame("FA_TYPE_CHAR").WebEdit("FA_CHAR:1$CHAR_VAL").Click
Ex2:
Code:
RowNum = 2
Browser("User").Page("Field Activity").Frame("FA_TYPE_CHAR").WebEdit("FA_CHAR:"&RowNum&"$CHAR_VAL").Click
this is same as :
Code:
Browser("User").Page("Field Activity").Frame("FA_TYPE_CHAR").WebEdit("FA_CHAR:2$CHAR_VAL").Click
other question about INDEX:
Code:
Browser("User").Page("Field Activity").Frame("FA_TYPE_CHAR").WebEdit("index:=0").set "your value"
Code:
Browser("User").Page("Field Activity").Frame("FA_TYPE_CHAR").WebEdit("index:=1").set "your value"
Note: indexing starts from 0
Regards,
Harish