Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Concatenating counter and object value
#3
Solved: 10 Years, 10 Months ago
Hi,

The question that you are asking is not clear.

Let me rephrase your question. Do you want to set the values (such as Kim1,Kim2) in the txtFirstNameField? If yes then use the below code


Code:
counter = 1
Do
  Browser("Softronic - HCMS").Page("Softronic - HCMS_2").WebList("ddlTitle").Select "Ms."
  strVar=Cstr("Kim"&counter)
  Browser("Softronic - HCMS").Page("Softronic - HCMS_2").WebEdit("txtFirstName").Set strVar
  counter = counter + 1
Loop while counter <= 5
feel free to post in case this doesnt suits your requirement.

Regards,
Ankesh
Reply


Messages In This Thread
RE: Concatenating counter and object value - by Ankesh - 02-21-2012, 11:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Rolleyes concatenating " (double quote) in a string??? vijayendra.shukla 3 18,726 07-05-2011, 08:06 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)