11-17-2009, 06:11 PM
Hi,
Below is the test case i have proceed.
1.Focus means (Ex: webedit object)
2.First find the particular cell consists of (Ex: A webedit name of "p_dev_release_found")
3. Then identify the number of edit fields available in that particular webtable (Here i have consider the object as webedit that is the reason i have calculated the webedit counut)
4.Write the for loop wherever this webedit title is matches in the webtable then focus the field i.e webedit field
By considering the above thing i generated a script...
Please look it may help you
Please let me know if i am wrong...
Thanks,
Venkat.Batchu
Below is the test case i have proceed.
1.Focus means (Ex: webedit object)
2.First find the particular cell consists of (Ex: A webedit name of "p_dev_release_found")
3. Then identify the number of edit fields available in that particular webtable (Here i have consider the object as webedit that is the reason i have calculated the webedit counut)
4.Write the for loop wherever this webedit title is matches in the webtable then focus the field i.e webedit field
By considering the above thing i generated a script...
Please look it may help you
Code:
Set odesc=Description.Create( )
oDesc("micclass").Value = "WebEdit"
oDesc("name").Value = "p_dev_release_found"
Set editcollection=Browser("xxxxxxxxxxxxxxxx").Page("xxxxxxxxxxxxxxxx").Frame("main").WebTable("Category").ChildObjects
Numberofedits=editcollection.count
msgbox Numberofedits
For i=0 to Numberofedits-1
If editcollection(i).GetROProperty("Name")="p_dev_release_found" Then
Browser("xxxxxxxxxxxxxxxx").Page("xxxxxxxxxxxxxxxx").Frame("main").WebEdit("name:=p_dev_release_found").Click
End If
Next
Please let me know if i am wrong...
Thanks,
Venkat.Batchu