09-29-2008, 10:25 PM
Hi,
I am given the following problem. I have a list of invoices in the application and I have to make sure the every invoice I click, should display some details. I have thought of looping the script but sometimes that doesn't work.
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 or any alternate method to solve this problem? Thanks
I am given the following problem. I have a list of invoices in the application and I have to make sure the every invoice I click, should display some details. I have thought of looping the script but sometimes that doesn't work.
For example, I have a manual generated script here
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 or any alternate method to solve this problem? Thanks