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 / rajesh
If Browser("index:=0").Exist(1) then
hWindow = getHandleBrowser
Browser("hwnd:=" &
hWindow).Navigate("http://www.google.com")
'msgBox "Opened URL"
Browser("hwnd:=" & hWindow).Sync
wait 2
else
SystemUtil.Run "iexplore.exe",
"http://www.google.com", "", "open"
hWindow = getHandleBrowser
Browser("hwnd:=" & hWindow).Sync
End If
Browser("hwnd:=" &
hWindow).Page("title:=.*").Link("name:=Images","index:=0").Click
Function getHandleBrowser
wHandle1 = Browser("index:=0").GetROProperty("hwnd")
getHandleBrowser = wHandle1
End Function
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek
how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)
www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example
Explain process of smart Identification in QTP?
What is clean sweep?
Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?
How to create Reusable and Multiple Actions?
Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.
why should we give deliver good quality software?
breef description of batch testing ?
What are the features supported by UFT?
what is keyword driven testing in qtp?n how is it useful?
How many types of recording facility are available in quicktest professional (qtp)?