with out object repository i need to launch IE and then
navigate to a login page and then operate the objects
within the page. How will be the script?
Answer Posted / sonal
Sample code to open browser and navigate to google site and
click on link.
------------------------------------------------------------
---------------------------------------------------------
If Browser("index:=0").Exist(1) then
wHandle1 = Browser("index:=0").GetROProperty
("hwnd")
hWindow = wHandle1
Browser("hwnd:=" & hWindow).Navigate
("http://www.google.com")
'msgBox "Opened URL"
Browser("hwnd:=" & hWindow).Sync
wait 2
Else
Call SystemUtil.Run
(BROWSER_EXE, "http://www.google.com", "", "open")
wHandle1 = Browser("index:=0").GetROProperty
("hwnd")
hWindow = wHandle1
Browser("hwnd:=" & hWindow).Sync
End If
Browser("hwnd:=" & hWindow).Page("title:=.*").Link
("name:=Images","index:=0").Click
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?
how interviews will be on QTP?
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]
Explain the features and benefits of quick test pro(qtp)?
How you can delete excel file in qtp?
Can we create user defined functions in qtp?
What is an object repository?
Difference between action & Reusable action?
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!
Which features or drawbacks of QTP lead to the upgrade for a newer version?
Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?