There is a link displayed in the web application. i need to proceed further by clicking it only if it is visible in the application. i tried like this,
"ret = Browser("IBM WebSphere Portal").Page("IBM WebSphere Portal").Link("Customer Service Request").Exist
If ret = 1 Then
Reporter.ReportEvent micPass,"Window verification","Verification of Customer Service Request Link successful"
Reporter.ReportEvent micFail,"Window verification","Verification of Customer Service Request Link UNsuccessful"
but it returns fail even though the link is visible. kindly suggest me frns.
The thing is it is returning fail as if the link does not exist. But actually the link is existing in the application. how to resolve this?once it goes into the true loop we can make it click the link but it is returning fail as if i does not at all appear in the application.
If your script works as you expect,
and click dependency doesn't indicate that TestCase is Failed,
you can disable Reporter before this operations
and enable it after it's done:
Reporter.Filter = rfDisableAll
'here you do your logic
Reporter.Filter = rfEnableAll