Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to capture text from a tooltip using QTP
#2
Not Solved
This code retrieve the text from a tool tip that appears when you move mouse over a cell of a JavaTable. The code parse the table line by line and retrieve the tool tip value that appears on every line

Code:
Set objJavaTable=JavaWindow("CM Uebersicht").JavaTable("Javatable").Object
set  Rect=objJavaTable.getCellRect(counter,0,True)
RectString=Rect.ToString()


intermediar1=split(RectString,"=",3,1)
intermediar2=split(intermediar1(1),",",2,1)
intermediar3=split(intermediar1(2),",",2,1)
x=Cint(intermediar2(0)) +10
y=Cint(intermediar3(0))

JavaWindow("CM Uebersicht").JavaTable("Javatable").FireEvent micMouseMove ,50, 0,x, y, 1, "OFF"

test2=JavaWindow("CM Uebersicht").JavaObject("JToolTip").Exist(1)
set objToolTip=JavaWindow("CM Uebersicht").JavaObject("JToolTip").Object

DocumentStatus=objToolTip.getTipText()
Reply


Messages In This Thread
RE: How to capture text from a tooltip using QTP - by quark76 - 04-28-2011, 04:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using QTP to capture screen shot ravi.gajul 12 77,187 08-10-2017, 06:58 AM
Last Post: pauljo.kld@gmail.com
  capture screenshot using html code and view in QTP Test results Bhuvan 3 7,235 07-19-2013, 02:38 PM
Last Post: Bhuvan
Question Capture hidden automatic number from database via QTP rani26 1 3,414 08-18-2008, 06:34 PM
Last Post: srinivas

Forum Jump:


Users browsing this thread: 1 Guest(s)