Intellisense is not working in UFT 12 ‘With’ block
Question ID: 105731
1
0

Intellisense is not popping up in my script when I call a function that is within a ‘With’ block. For example:

CheckLink Browser("Google").Page("Automation Testing Software").Link("Get Started Now") ‘This works fine!

With Browser("Google")
.Page("Google").WebEdit("q").Set "HP UFT"
With .Page("HP UFT – Google Search")
.WebButton("btnG").Click
.Link("Unified Functional Testing").Click
End With
.Page("Automation Testing Software").Link("Get Started Now").Click
CheckLink . ‘This does not work!
End With

Function CheckLink (objLink)
If objLink.Exist Then
’ Got it
CheckLink = True
Else
’ Nope
CheckLink = False
End If
End Function

When the . is typed, intellisense should open allowing you to select methods and child objects. It doesn’t work. The only thing displaying is the function tooltip. However, if the code looks like:

CheckLink Browser(

or

With Browser("Google")
.
End With

then intellisense works as expected. The problem only is when the function call is within a ‘With’ block.

Marked as spam
Posted by (Questions: 386, Answers: 64)
Asked on November 24, 2014 2:40 pm
52 views
Answers (1)
1
Private answer

There is a known issue with this. HP has stated in QCCR1J64543 that this will be fixed in UFT 12.02. Unfortunately, HP doesn't divulge when new releases will be available. Hopefully soon.

Marked as spam
Posted by (Questions: 16, Answers: 807)
Answered on November 24, 2014 2:41 pm
0
Thanks for the info. It's good to know they are working on it!
( at November 24, 2014 2:42 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top