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
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 |
Whenever I use Wscript.Echo Qtp raising Run time error as 'Object required for Wscript' How I can create object for Wscript
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
Explain about vb script?
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.
explain with example primitive data types of vb script.
regular expression that will recognize a browser as long as its name property starts with mybrowser
Which operator is used to concatenate the 2 values in the vbscript language?
how to comvert 120 into one hunderd twenty rupees only and vice varsa
1)How to test whether items in a weblist are in alphabetical order or not?
what is test scenario?
Mention what is the use of option explicit in vbscript?
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..