If 3 browsers are opened in our system, how to enter the
facebook url into second browser by using descriptive
programing
Answers were Sorted based on User's Feedback
Answer / sireesha
'Open a new Browser
SystemUtil.Run "iexplore.exe", "http://www.google.com"
'Browser Sync
Browser("CreationTime:=0").Sync
'Find total number of tabs in the browser window
iTabs = Browser("CreationTime:=0").GetROProperty("number of tabs")
msgbox iTabs 'Displays the value 1
'Open a new tab within the same browser
Browser("CreationTime:=0").OpenNewTab()
'Sync for new tab
Browser("CreationTime:=1").Sync
'Load some web page in the new tab
Browser("CreationTime:=1").Navigate "http://www.yahoo.com"
'Find total number of tabs in the browser window
iTabs = Browser("CreationTime:=0").GetROProperty("number of tabs")
msgbox iTabs 'Displays the value 2
'Close all the tabs in the browser window
Browser("CreationTime:=0").CloseAllTabs()
'OR -> Browser("CreationTime:=1").CloseAllTabs()
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / milan
You can use the ordinal identifier -Browser creation time
enter the url where browser creation time =1
| Is This Answer Correct ? | 1 Yes | 2 No |
what is the difference btn risks & Therads in the Test plan documentation?
I got an error "The"flightres" Dialog was not found in the Object Repository. Check the OR to confirm that the object exists or to find the correct name for the object." while running the following script Set flightres=description.Create() flightres("text").value="Login" flightres("Class Name").value="Dialog" Set agent = description.Create() agent("nativeclass").value="WinEdit" agent("attachedtext").value="Agent Name:" Set pwd = description.Create() pwd("nativeclass").value="WinEdit" pwd("attachedtext").value="Password" Set button = description.Create() button("nativeclass").value="WinButton" button("Text").value="OK" Dialog("flightres").WinEdit("agent").Set "test" Dialog("flightres").WinEdit("pwd").Set "mercury" Dialog("flightres").WinButton("button").Click Please let me know if i made any mistake in the above script...?
In Remote acess server how u run a test?
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
What is Parameterizing Tests?
What are the flaws in water fall model and how to overcome it?
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?
How can we conduct U-I Testing by using QTP??????
What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........
How to test whether the navigation i.e. from one page to another is working r not using QTP for web based application. plz explain in detailed or mail the sample code to malepatin@gmail.com
What type of error u will get if u have not installed java add in in java project? what is the error name ?