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?
Answers were Sorted based on User's Feedback
Answer / ramanestalu dasari
create instance object using InternetExplorer.Application
Ex: Dim IE
set IE=createobject("InternetExplorer.Application")
IE.navigate("www.gmail.com")
IE.visible=True
Browser().page().webedit().set "value"
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
Answer / 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 |
If an application name is changes frequently i.e while recording it has name, in this case how does QTP handles?
Check point what is how many types of checkpoint and explain
What is Regular Expressions?
What is the differences between image check point and bit map check point?
How to record object in runtime. I am testing one Image website in which every time image change on home page.so if i records the image list but during running image get change, and QTP gives error
Where you can store check point results?
How to send QTP test results to an email...(with out using Quality Center)?
If you entered into yahoo mail with your valid user name and password , then you will get " welcome , username " (for example you will see , “welcome, Krishna” ) text on the top of the Inbox page , how can you test the user name is correct or not using QTP?
How you can find length of array in qtp?
How do function returns a value?How can we pass one function value to other function as input
In an(AUT) web application their are two frames as fraMain and fraFooter. Both the frames contain link which needs to be retrieved at a single step. I tried it using "Regular Expression" as fra.* but QTP doesn't recognize the object. So Plz help me out to get resolve the problem:-)
what ar the challenges do we face while testing webbased applications using the automation tool qtp or any?