Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change the combobox value for each iteration
#1
Solved: 11 Years, 4 Months ago
When same test repeated at the time combobox data should change, What should i do?
Pls give the sample script.
Reply
#2
Solved: 11 Years, 4 Months ago
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
Reply
#3
Solved: 11 Years, 4 Months ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How do you Change Run mode mid script? Caleytown 6 7,226 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 973 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 2,291 02-04-2020, 12:32 AM
Last Post: Raj Aryan Singh
  UFT Tool runs more than one iteration always cthossain 2 3,743 02-12-2017, 01:25 PM
Last Post: cthossain
  [UFT] Change property of object (WpfButton) robertosalemi 2 2,624 11-22-2016, 12:43 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 3 Guest(s)