02-01-2010, 05:28 PM
Hi,
I am getting syntax error.
when observed with object spy:The objects href property:
javascript:Copy('sourceName','0','2')
when i directly use this value its treating as comments.
Any help will be really appreciated.
Regards;
Vijay
Code:
Function SetSource
Set WbEdit = Description.Create()
WbEdit("micclass").Value = "Link"
WbEdit("name").Value = "C"
WbEdit("href").Value=javascript:Copy"('nessusId','0','4')"
Set AllWbEdit = Browser("micclass:=browser").Page("micclass:=Page").ChildObjects(WbEdit)
NumberOfEdits=AllWbEdit.Count
msgbox(NumberOfEdits)
For i=0 to (NumberOfEdits-1)
if AllWbEdit(i).GetRoproperty("href")<>javascript:Copy"('sourceName','0','2')" then
AllWbEdit(i).Click
End if
Next
End Function
I am getting syntax error.
when observed with object spy:The objects href property:
javascript:Copy('sourceName','0','2')
when i directly use this value its treating as comments.
Any help will be really appreciated.
Regards;
Vijay