Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using looping method to test selection of many records
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
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

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
Reply


Messages In This Thread
Using looping method to test selection of many records - by mahadevan.swamy - 09-29-2008, 10:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best method to use for automating 1000 records shuhale 0 1,101 07-21-2021, 11:42 PM
Last Post: shuhale
  Windows Application Custom Combo box selection change event not firing in uft RamUFT 0 964 02-06-2020, 08:10 AM
Last Post: RamUFT
Question Find specific records in a SwfTreeView on different node levels lotos 0 2,419 10-06-2017, 05:14 AM
Last Post: lotos
  Fetching total number of records inside a webtable vidya2k2 2 3,897 06-15-2015, 02:55 PM
Last Post: venkatesh9032
  Web List Selection mhanaan 1 7,469 11-24-2012, 03:30 AM
Last Post: imzeeshan

Forum Jump:


Users browsing this thread: 1 Guest(s)