If 2 gmail browsers are opened in our system, how to enter
the mail id and password into second browser by using
discriptive program?

Answers were Sorted based on User's Feedback



If 2 gmail browsers are opened in our system, how to enter the mail id and password into second br..

Answer / manas

hi samrat..

i think the creation time should be 1 not 2.
why because creation Time starts from 0. (Please refer QTP
user manual )

Browser("creationtime:=1","name:=Gmail").Page
("title:=Gmail").WebEdit("name:=Login").set "hihi"

pls rectify me if i'm wrong.

Is This Answer Correct ?    14 Yes 0 No

If 2 gmail browsers are opened in our system, how to enter the mail id and password into second br..

Answer / samrat

user creationtime
Browser("creationtime:=2","name:=Gmail").Page
("title:=Gmail").WebEdit("name:=Login").set "hihi"

Is This Answer Correct ?    7 Yes 1 No

If 2 gmail browsers are opened in our system, how to enter the mail id and password into second br..

Answer / manjukypa

Hi Samrat,

Pls let me know how to identify the creation time in gmail
web browser?Pls let me know?

Is This Answer Correct ?    1 Yes 1 No

If 2 gmail browsers are opened in our system, how to enter the mail id and password into second br..

Answer / niranjan chandramouli reddy

As the browser with same name is opened later it will be
visible at the top.Hence the index of that browser forms
0.As per the above explanation use the following code:



Browser("index:=0","name:=Gmail").Page
("title:=Gmail").WebEdit("name:=Login").set "hihi"

Is This Answer Correct ?    1 Yes 2 No

If 2 gmail browsers are opened in our system, how to enter the mail id and password into second br..

Answer / nag

your qustn is wrong,your question shuld be like this 2 gmail windows in 1 browser
we can use creation time and micclass hare creation time starts with 0 so for 2nd windoe creation time will be 1
with Browser("creation:=o").page("micclass:=0")
.webedit("name:=login").set "abc"
.webedit("name:=passwd").set "1234"
.webbutton("name:=sign in").click
end with

Is This Answer Correct ?    0 Yes 2 No

If 2 gmail browsers are opened in our system, how to enter the mail id and password into second br..

Answer / samrat

If the object is not unique...QTP will automatically give
the index of the object if using OR...
Else
Use object collecion of a particular type and the u will
get the index... u cant use getroproperty for index..
try to add that object into OR and u will get to know the
index and use that index prop in ur desc prog ..

correct me if iam wrong...

Is This Answer Correct ?    0 Yes 3 No

If 2 gmail browsers are opened in our system, how to enter the mail id and password into second br..

Answer / nag

sorry der is mistake in my above code
your qustn is wrong,your question shuld be like this 2 gmail windows in 1 browser
we can use creation time and micclass hare creation time starts with 0 so for 2nd windoe creation time will be 1
with Browser("creation:=o").page("micclass:=page")
.webedit("name:=login").set "abc"
.webedit("name:=passwd").set "1234"
.webbutton("name:=sign in").click
end with

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More QTP Interview Questions

What are objects? how do you select the unknow object?

3 Answers  


Anybody explain me, the concept of checkpoint declaration in the QTP mainly for the Objects, Pages, Text and Tables ?

1 Answers  


Explain how you can replace string in qtp?

0 Answers  


What is quicktest professional window?

0 Answers  


Plz explain about InTERNAl Environment variable, External environment variable,builtin environment variables with examples?

1 Answers   TCS,






I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object

0 Answers   ADITI,


Hi What are re-usable actions in QTP? -Thank You

5 Answers   Siemens,


what is the test object?

1 Answers  


I'm quite new at QTP. Im doing a web-based app testing. I create something new item and a new link is created in the home page. This link is dynamic as it changes every 3 seconds. Obviously the new link is not in my Object Repo and I am trying to find a way how can I do a check or get the propery of the link I created. I can do it on keyword, but I need to do a check on expert mode, vbscript. I always get an error that is not identified whenever i try to check it (browser(b),page(p).link(newlink). Any idea?

4 Answers  


Discuss quicktest professional environment?

0 Answers  


Diff between WEB APPLICATION AND CLIENT-SERVER APPLICATION?

2 Answers  


Hi, It is HR question. What are the qualities you like and dislike in your Project Manager?

2 Answers   TCS,


Categories