Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Webedit Issue
#5
Not Solved
Hi Subha,

In the above code u need not to have the month and year field. The script is fetching the system month,day,year in order to create a unique customer number.

However, as u said u have set of customers in the datatable, u can use the below code in case of error

'Your code goes here

Code:
intCurrentRow= Datatable.GetSheet(<SheetName>).GetCurrentRow

Do
Datatable.GetSheet(<SheetName>).SetCurrentRow intCurrentRow
strCustomer=Datatable(“<ColumnName>”,<SheetName>)
Browser("<BrowserName>").Page("<PageName>").WebEdit("<EditBoxName>").Set strCustomer
Browser("<BrowserName>").Page("<PageName>").WebButton("<Add Customer Button Name>").click
'chk if error exist
if <Error Window>.Exist Then
    <Error Window>.close
    intCurrentRow= Datatable.GetSheet(<SheetName>).GetCurrentRow
    intCurrentRow= intCurrentRow+1    
End IF

Loop While <Error Window>.Exist


Regards,
Ankesh
Reply


Messages In This Thread
Webedit Issue - by Subha - 11-18-2011, 10:47 AM
RE: Webedit Issue - by vinod123 - 11-18-2011, 12:08 PM
RE: Webedit Issue - by v.swaminathan - 11-18-2011, 12:40 PM
RE: Webedit Issue - by Subha - 11-18-2011, 04:17 PM
RE: Webedit Issue - by Ankesh - 11-18-2011, 08:03 PM
RE: Webedit Issue - by supputuri - 11-18-2011, 08:40 PM
RE: Webedit Issue - by Subha - 11-22-2011, 05:19 PM
RE: Webedit Issue - by Gajre - 11-22-2011, 06:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)