01-23-2008, 06:22 PM
When same test repeated at the time combobox data should change, What should i do?
Pls give the sample script.
Pls give the sample script.
|
How to change the combobox value for each iteration
|
|
01-23-2008, 06:22 PM
When same test repeated at the time combobox data should change, What should i do?
Pls give the sample script.
01-23-2008, 07:19 PM
Pass the data u want to test from our to DataTable and use the For loop to remeat the scripts
sample code Code: Dim br,url,num,i
br = "C:\Program Files\Internet Explorer\iexplore.exe"
url = "www.google,com"
On error resume next
systemutil.Run br,url,"","open",3
If err.number <> 0 Then
Reporter.ReportEvent 1,"Failed","The Browser and url has not been invoked"
exitrun(0)
else
Reporter.ReportEvent 0,"Passed","The application has been invoked successfully"
End If
Datatable.ImportSheet "path,"ddd","ddd"
num=datatable.GetSheet ("ddd").Getrowcount
msgbox (num)
For i=1 to num
DataTable.GetSheet("ddd").SetCurrentrow i
Browser("name:=df"page("title:=dfs").WebEdit("html id:=fsfse").Set datatable("dfsvd",dtLocalSheet)
Browser("name:=dfefs").page("title:=dfsdfs").WebEdit("html id:=fsdf").click
Browser("name:=dfefs").page("title:=dfsdfs").WebEdit("html id:=fsdf")..Set datatable("password",dtLocalSheet)
Browser("name:=dfefs").page("title:=dfsdfs").WebEdit("html id:=fsdf").WebButton("name:=fsdf").click
Next
02-11-2008, 02:52 PM
Gouda i have 1 question similar to this Topic...
How do i select different radio buttons for each ietration any code u hav in mind,if yes can u putit across here. Situation:there are 5 radio buttons in page for each iteration it should select the radio buttons in an order like 1 2,3,..... for 1st iteration,2nd iteration so on........... plz guide me on this |
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| How do you Change Run mode mid script? | Caleytown | 6 | 8,826 |
03-25-2021, 08:27 AM Last Post: RB26578 |
|
| Object not found during the 2nd iteration of an Action call in a For loop | BGunay | 0 | 1,391 |
04-23-2020, 07:08 PM Last Post: BGunay |
|
| Not able to get the list of items in Delphi Combobox Environment Object | Raj Aryan Singh | 3 | 3,123 |
02-04-2020, 12:32 AM Last Post: Raj Aryan Singh |
|
| UFT Tool runs more than one iteration always | cthossain | 2 | 4,607 |
02-12-2017, 01:25 PM Last Post: cthossain |
|
| [UFT] Change property of object (WpfButton) | robertosalemi | 2 | 3,144 |
11-22-2016, 12:43 PM Last Post: Ankur |
|