02-08-2010, 05:32 PM
[/i]Hi,
I have 2 Links with process and processcomments
i have used the below code for identifying processcomments
Gives the exact result.
But now when i write for edit box:process
Now the problem is it matches with that of processcomments and clicks that too.
The href property of process is:javascript:Copy('process','0','2')
while the href property of processcomments is:
javascript:Copy('processComments','0','2')
I want to identify the process link with that of processcomments link
Any help will be really appreciated.
Regards;
Vijay
I have 2 Links with process and processcomments
i have used the below code for identifying processcomments
Code:
Set WbLink = Description.Create()
WbLink("micclass").Value = "Link"
WbLink("name").Value = "C"
WbLink("href").Value=".*processComments.*"
Set AllWbLink = Browser("micclass:=browser").Page("micclass:=Page").ChildObjects(WbLink)
NumberOfLinks=AllWbLink.Count
msgbox NumberOfLinks
For i=0 to(NumberOfLinks)-1
if AllWbLink(i).GetRoproperty("href")<>"processComments.*" then
AllWbLink(i).Click
End if
Next
But now when i write for edit box:process
Code:
Set WbEdit = Description.Create()
WbEdit("micclass").Value = "Link"
WbEdit("name").Value = "C"
wbEdit("href").Value="process.*"
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")<>"process.*" then
AllWbEdit(i).Click
End if
Next
The href property of process is:javascript:Copy('process','0','2')
while the href property of processcomments is:
javascript:Copy('processComments','0','2')
I want to identify the process link with that of processcomments link
Any help will be really appreciated.
Regards;
Vijay