Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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???

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.

2073


Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)

1911


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

2120


what is the difference betn QTP 8.0 AND PREVIOUS VERSION

2455


Hi All, How to Compare two strings character by character in QTP

1505


suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1847


Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com

2392


How to remove associated function library?

1003


hi, FOR 3+ QTP INTERVIEW, FOR EXAMPLE WE PUT ONLINE BANKING SYSTEM PROJECT IN OUR RESUME, IN PROJECT MANAGER ROUND...WHAT R THE MAJOR QUESTIONS ARE ASKED IN P.M? PLS TELL ME ATLEAST 10 QUESTIONS?.....AND IF POSSIBLE POST ANSWERS ALSO....

2936


Hi All, I need code for how to execute qtp scripts from excell sheet

1925


What is the syntax to call one script from another?

1053


Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations

2190


could any help me please, how to work on visual foxpro application using UFT

2387


Difference between action & Reusable action?

1081


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

2358