Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to perfom double click Operation in Firefox using QTP
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Ankur,

We have a scenario where it should be double clicked on a particular item in the list and it will open respective Page. We are able to write a script for this in IE where as in Firefox we are getting an error. The item in the list is getting recognised as 'WebElement'. Do you have a solution for this? Let me know if u need any additional information.

Thanks in Advance,
Yarley
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Have you tried .dblclick with that object?
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Yes..I have tried that..But its not working in Mozilla where as its working in IE
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Is it possible for you to simulate this on a publicly accessible site? If yes, record the script on that site and pass on here, I will check for the problem.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
Do a object spy for the object you need to double click and in the object spy window check whether the method dblclick exists or anyother methods available for doing a dbl click
Reply
#6
Solved: 11 Years, 3 Months, 3 Weeks ago
I am facing the same issue. Could you please help?
I have tried tools -> web event Recording config .... doesn't work.
Reply
#7
Solved: 11 Years, 3 Months, 3 Weeks ago
You need to change the Replay Mode from Event to Mouse before the ondblclick statement and switch it back to Event mode after the statement.

Please refer to following link for more details:

qtp-qaautomation.blogspot.com/2009/01/how-to-execute-double-click-operation.html
Reply
#8
Solved: 11 Years, 3 Months, 3 Weeks ago
That works! Just before reading your reply, I tried using Virtaul object. Thats works well too!
I created VO and then recorded the required Image. Then the image gets recorded as the created VO with Dblclick property.
Thank you, yarley!
Reply
#9
Solved: 11 Years, 3 Months, 3 Weeks ago
hiii all.....

i also found the same problem in a GWT application where all the objects are recognized as either WebElement or an Image...

I tried the following for performing dbl click and i got success in IE.. Hope it will also work in Mozilla as well....


Code:
Set obj = CreateObject ("Mercury.DeviceReplay")
absx=Browser("b").Page("p").WebElement("W").GetROProperty("abs_x")
absy=Browser("b").Page("p").WebElement("W").GetROProperty("abs_y")
obj.MouseMove absx, absy
obj.MouseDblClick absx, absy,0
Set obj = Nothing



Just try it and let me know whether it is working or not...Just drop a mail on -- souvikghosh.Diatm@gmail.com
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Double click kiran664791 0 928 03-11-2023, 06:50 PM
Last Post: kiran664791
  QTP add in for Firefox v34 amitseth79 1 2,368 02-12-2015, 04:04 PM
Last Post: Kirill
  The operation failed. An object could not be found. kotaramamohana 1 3,784 08-07-2013, 12:34 PM
Last Post: anil2u
  Problem with QTP recognition of Flex objects in web-based GUI using Firefox & Chrome nancyanne18 0 2,572 10-25-2012, 08:11 PM
Last Post: nancyanne18
  if double quotes comes in outer html sujaravi123 3 6,835 10-18-2012, 10:16 AM
Last Post: harishshenoy

Forum Jump:


Users browsing this thread: 1 Guest(s)