Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to record the double click actions
#6
Solved: 11 Years, 3 Months, 2 Weeks ago
This helps. Add the webtable object to your Object repository and paste the below code in the expert view and execute it.

Code:
rowcount = Browser().page().frame().webtable().rowcount

For i = 0 to rowcount - 1
   cellvalues = Browser().page().frame().webtable().getcelldata(i, 1)
   if Instr(Trim(Cellvalues),"Venkat") <> 0 Then
          Browser().page().frame().webtable().Fireevent "ondblclick"
Next

if the above throws a error or does not work try this,

ItemRowNum = Browser().page().frame().webtable().Getrowwithcelltext("venkatbabu")

Browser().page().frame().webtable().object.Rows(ItemRowNum).Cells(1).Fireevent "ondblclick"

Let me know if it helps.
Please be aware that the most skeletal part of a raw code has been supplied to you. Please tweak according to your requirement and your coding standards. Logic is the only part which remains untouched.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Messages In This Thread
RE: How to record the double click actions - by basanth27 - 08-11-2009, 12:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to perform the "Double click" event on Java Addins i.e Java button venkatbatchu 2 7,897 01-24-2010, 01:07 PM
Last Post: venkatbatchu
  Call to COPY of Actions from QC8.2 (file system) to QTP 9.5 not copying the actions govqa 0 2,387 05-13-2009, 01:44 PM
Last Post: govqa

Forum Jump:


Users browsing this thread: 3 Guest(s)