There is one login screen,after accepting valid username
and apassword, it will show the next screen. In the 2nd
screen u r having 2 combo boxes, U have to select any item
from these, and click OK button. After closing that, it
will show the 3rd screen. If u click CANCEL button from 2nd
screen it will show the first screen. Write QTP script for
it???



There is one login screen,after accepting valid username and apassword, it will show the next scre..

Answer / uday

Hi,

The code looks like below:

browser().page().webedit().set "username"
browser().page().webedit().set "password"
browser().page().weblist().select "SelectItem"
btnName=browser().page().webedit().getROProperty("value")
if btnName="Cancel" then
check for 2 page itself
B().P().exists
else
check for 3rd page
end if

Is This Answer Correct ?    2 Yes 9 No

Post New Answer

More QTP Interview Questions

When a requirement is given to u to automate , What is ur basic approach ?

4 Answers  


Associated files in QTP?

1 Answers  


In a page i have N number of links at a time i would like to open those links by using QTP?how to do that?

2 Answers   Wipro,


What is the difference between Mandatory and BaseFilter Properies..Anybody please answer me..Thanks in Advance

3 Answers   BirlaSoft,


pls guys understand this is question CAREFULLY,,, interviwer asks can u write test case for ATM m/c..i told, insert card enter pw...like this,,but interviwer not happy with that...ur not going to atm center? in ur office system ur testing ATM M/c...why ..how to test? what is the process?

1 Answers   Accenture,






Is it possible to run QTP scripts created in IE 6.0 in IE 7.0?

4 Answers   TCS,


How to make Non reusable actions into reusable action? is that feature available in QTP

2 Answers   Ordain Solutions,


How can i open a file in Textpad and replace a string with another using QTP

1 Answers   Wipro,


Hi all, In Every interview interview asking one question what type of challenges you have been faced in your project?

1 Answers  


What is the regular expression for Yahoo mail Inbox?

2 Answers  


What is the use of virtual objects?

1 Answers  


when i add the items to the repositry, the item is loading is "winmenu", but wn i write the script the tool is not able to recognise the item, i know that we need to define the mandatory or assitive properties here, but i am confused wt i need to difine here and on wt basis i need to select the properties and define it, can any one help me out on this.

0 Answers  


Categories