Hello All,

In QTP 9.2 for Mozilla Firefox, there is webelement in my
application, I tried to click on that using decsriptive
programming, but it does not work.
and for this i tried this code too:
Set obj = CreateObject ("Mercury.DeviceReplay")
absx = Browser("").Page("").WebElement(".").GetROProperty
("abs_x")
absy = Browser("").Page("").WebElement(".").GetROProperty
("abs_y")
obj.MouseMove absx, absy
obj.MouseClick absx, absy, 0
But it is not clicked.
Can anyone help me out for this problem.

Thnx in Advance



Hello All, In QTP 9.2 for Mozilla Firefox, there is webelement in my application, I tried to cl..

Answer / aparna

I am having the same problem. I tried with the above code
and also put wait() statement in the code. Nothing works.
It would be greatly appreciated, if someone help with this.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

Whenever I use Wscript.Echo Qtp raising Run time error as 'Object required for Wscript' How I can create object for Wscript

1 Answers  


Sub link() Dim k As Integer Dim rand As Integer Dim URL As String Dim foldernum As Integer Dim folderstring As String Dim filenum As Integer Dim filestring As String k = 1 'for AC Numbers For i = 11 To 40 foldernum = 0 foldernum = 1000 + i folderstring = CStr(foldernum) folderstring = Mid(folderstring, 2, 3) folder = "ac" & folderstring 'folderstring = Sheets(2).Cells(i, 1) ' for Number of Random files For j = 1 To 10 rand = Int(Rnd * (200 - 1) + 1) filenum = 0 filenum = 1000 + rand filestring = CStr(filenum) filestring = Mid(filestring, 2, 3) 'URL = "http://ceobihar.nic.in/PSCDROM/ac" & folderstring & "/i" & folderstring & "0" & filestring & ".pdf" URL = "http://www.elections.tn.gov.in/pdfs/dt1/" & folder & "/" & folder & filestring & ".pdf" ' URL =http://www.wb.nic.in/wbeco/EROLLS/PDF/English/A001/a0010105 .pdf Cells(k, 1) = folderstring Cells(k, 2) = folder Cells(k, 3) = filestring Cells(k, 3) = URL k = k + 1 Next j Next i End Sub plz define it

0 Answers  


Explain about vb script?

0 Answers  


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

0 Answers  


explain with example primitive data types of vb script.

1 Answers  






regular expression that will recognize a browser as long as its name property starts with mybrowser

0 Answers   Banking,


Which operator is used to concatenate the 2 values in the vbscript language?

0 Answers  


how to comvert 120 into one hunderd twenty rupees only and vice varsa

0 Answers  


1)How to test whether items in a weblist are in alphabetical order or not?

1 Answers   TCS,


what is test scenario?

1 Answers  


Mention what is the use of option explicit in vbscript?

0 Answers  


hai all.iam chandu..please let me know how to test a link in QTP when it is changing at run time..and what property we should take while we r using descriptive programming for a link..

6 Answers  


Categories