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 |
How to do Laod testing for web based Application?
what is active screen,keyboard view?
What is QTP scenario.
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
How to pass parameters into an action.Please explain me with examples
explain how to write vb script in qtp?when will you write own script?
My Application is a client server application , but there is one functionality , when we click on one particular icon it launches web browser . When I am recording in QTP , By select approprait web add in also , it not able to record in web page , I am able to record till click on the icon. Please provide me how to over come this type of problem.
If aclient comes to tester ask to bye a tool Keep aside about the cost,In what way we can choose the tool.
How many regression test suits in your appliction?
How can i see test results in excel sheet ? test data not present in data table.
How to find operating system information using the qtp script?
How do you learn the object in QTP?