Need help in recognizing the web edit objects inside the web table thru DP to set the value from the test data. Please look into the attachment for the screen shot. This is my first assignment and got held with the following...
I searched in the Google group for answer but I didn’t get specific answer regarding this one! Please advice.
Thanks Madhu for your time. But still no luck in identifying the webedit object.
Along with your script i included the index property as 14 in the objtable and then tried , still having the same error msg!
Cannot identify the object "[ WebEdit ]" (of class WebEdit). Verify that this object's properties match an object currently displayed in your application.
Objects are looking like this in the object rep:
First Name M.I Last --> this whole thing is a web table with properties (html tag :=TABLE, Index:=14)
First Name M.I Last ---> webelement with properties (innertext :=First Name M.I. Last Name Email User ID.*, html tag := DIV, Class := BSFFIRSTSectionBox)
First Name ---> WebEdit (type:= text, name:=ctl00$ContentPlaceHolderPageContent.*, html tag := INPUT)
Last Name ---> WebEdit (type:= text, name:=ctl00$ContentPlaceHolderPageContent.*, html tag := INPUT)
User id ---> WebEdit (type:= text, name:=ctl00$ContentPlaceHolderPageContent.*, html tag := INPUT)
Password ---> WebEdit (type:= password, name:=ctl00$ContentPlaceHolderPageContent.*, html tag := INPUT)
Confirm Password ---> WebEdit (type:= password, name:=ctl00$ContentPlaceHolderPageContent.*, html tag := INPUT)
also tried the following and still the same error....
Function edit_input(fname,ftext)
Dim mywe,mypg
Set mypg = Browser("title:=.*").Page("title:=.*")
wait 3
Set mywe = description.Create()
mywe("micclass").value ="WebEdit"
mywe("name").value=fname
mywe("html tag").value="INPUT"
mywe("kind").value="singleline"
mywe("type").value="text"
mywe("html id").value="*TB"
mypg.WebEdit(mywe).Set ftext
Set mypg = nothing
Set mywe = nothing
End Function
Wow, at last we got the solution. Thanks a lot Rajesh. I was struggling to set the values. You explained it very well. Thanks again!!
Here is the code to get the table & cell info, thought it might be useful, so just sharing.
Set table_ds = Description.Create()
table_ds("html tag").Value = "TABLE"
Set child_tables = Browser("name:=.*").Page("title:=.*").ChildObjects(table_ds)
table_count = child_tables.Count
print "We have " & table_count &" tables"
For tCount = 0 to table_count - 1
For t_rowCount = 1 to child_tables(tCount).RowCount
For t_colCount = 1 to child_tables(tCount).ColumnCount(t_rowCount)
print "~~~~~~~TABLE~~~~~~~~~~ " & tCount
print "Current Cell: " & t_rowCount & "," & t_colCount
print "CellData: " & child_tables(tCount).GetCellData(t_rowCount , t_colCount)
Next
Next
Next
Set child_tables = Nothing
Set table_ds = Nothing
Thanks & Regards,
Madhu