09-29-2008, 10:10 PM
For example, I have a manual generated script here
--------------
I have written a looping code
-----
When I run this looping code, I get the error message that the "_sweview_8" frame object repository was not found in the object repository. Can anybody suggest what i should do? Thanks
Code:
Browser("UWindsor").Page("ENG").Frame("_sweview_2").Image("Select record").Click
Browser("UWindsor").Page("ENG”).Frame("_sweview_3").Link("Line Items").Click
Browser("UWindsor").Page("ENG").Frame("_swescrnbar").Link("Invoices").Click
'Browser("UWindsor").Page("ENG").Frame("_sweview_4").Image("Select record").Click
'Browser("UWindsor").Page("ENG").Frame("_sweview_5").Link("Line Items").Click
'Browser("UWindsor").Page("ENG").Frame("_swescrnbar").Link("Invoices").Click
'Browser("UWindsor").Page("ENG").Frame("_sweview_6").Image("Select record").Click
'Browser("UWindsor").Page("ENG").Frame("_sweview_7").Link("Line Items").Click
'Browser("UWindsor").Page("ENG").Frame("_swescrnbar").Link("Invoices").Click
I have written a looping code
Code:
Browser("UWindsor").Page("ENG").Frame("_swescrnbar").Link("Invoices").Click
Browser("UWindsor").Page("ENG").Frame("_sweview").Link("Line Items").Click
Browser("UWindsor").Page("ENG").Frame("_swescrnbar").Link("Invoices").Click
i=2
While i<=10
Browser("UWindsor").Page("ENG").Frame("_sweview_"&i).Image("Select record").Click
i = i + 2
Browser("UWindsor").Page("ENG").Frame("_sweview").Link("Line Items").Click
Browser("UWindsor").Page("ENG").Frame("_swescrnbar").Link("Invoices").Click
Wend
Browser("UWindsor").Page("ENG").Sync
When I run this looping code, I get the error message that the "_sweview_8" frame object repository was not found in the object repository. Can anybody suggest what i should do? Thanks