Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with edit box
#4
Solved: 10 Years, 9 Months, 4 Weeks ago
Hi,
I am using the following code.
As there are so many edit boxes, i am filtering it.

Code:
Browser("micclass:=browser").page("micclass:=page").WebEdit("name:=sourceMoreRows").Set 1------>acts as switch
    var= Browser("micclass:=browser").page("micclass:=page").WebEdit("name:=sourceMoreRows").GetROProperty("value")
Browser("micclass:=browser").page("micclass:=page").WebButton("Name:=More Sources").Click

Set WbEdit = Description.Create()
WbEdit("micclass").Value = "WebEdit"
WbEdit("html id").Value = sourceName_0
Set AllWbEdit = Browser("micclass:=browser").Page("micclass:=Page").ChildObjects(WbEdit)
NumberOfEdits=AllWbButton.Count
msgbox(NumberOfEdits)
For( i = 0 ,i<=var,i++)
WBname = AllWbEdit(i).GetROProperty("html id")
msgbox(WBname)
If trim(WBname) = trim(sourceName_0) Then
    AllWbEdit(i).Set "Test"

End If
Next
But the problem is when it adds new edit boxes, the name of the edit box changes
1st edit box name:sourceName_0
2nd edit box name:sourceName_1
and so on...
if i trim by name, i am able to set the value in only 1 edit box.
i want to set different values in the different edit boxes which populate after clicking add button.
Any help would be really appreciated.
Regards;
vijay
Reply


Messages In This Thread
problem with edit box - by vijay44 - 01-28-2010, 11:19 PM
RE: problem with edit box - by manabh - 01-29-2010, 10:23 AM
RE: problem with edit box - by sreekanth chilam - 01-29-2010, 01:23 PM
RE: problem with edit box - by vijay44 - 02-01-2010, 11:09 AM
RE: problem with edit box - by rajvanan - 02-01-2010, 12:34 PM
RE: problem with edit box - by vijay44 - 02-01-2010, 12:48 PM
RE: problem with edit box - by sreekanth chilam - 02-01-2010, 01:11 PM
RE: problem with edit box - by vijay44 - 02-01-2010, 02:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to edit a text in aParagraph shaan.mishra87@gmail.com 2 2,387 08-26-2016, 04:48 PM
Last Post: shaan.mishra87@gmail.com
  Auto complete for Web Edit box branjitk 2 5,750 12-20-2014, 09:31 PM
Last Post: supputuri
  Could not able to click on 'Edit' Button in a Table kotaramamohana 3 3,388 09-26-2012, 07:40 PM
Last Post: krr
  Unable to select an item from weblist and unable to enter text in edit box estherindu 5 9,184 05-15-2012, 12:07 AM
Last Post: viswa
  Microsoftoutlook 2003 Email from QTP Script waring box problem Uma 5 5,055 11-30-2011, 02:05 PM
Last Post: tirru

Forum Jump:


Users browsing this thread: 1 Guest(s)