what is regular expression how will you implement it?
Answer / srinivas
Let us take yahoo! site as an example. Then the script will
be something like:
===========================================================
Browser("Yahoo! Mail - The best").Page("Yahoo! Mail - The
best").WebEdit("login").Set "TestUser"
Browser("Yahoo! Mail - The best").Page("Yahoo! Mail - The
best").WebEdit("passwd").SetSecure "460205b87f0543"
Browser("Yahoo! Mail - The best").Page("Yahoo! Mail - The
best").WebButton("Sign In").Click
Browser("Yahoo! Mail - The best").Page("Yahoo! Mail -
TestUser@").Link("Addresses").Click
Browser("Yahoo! Mail - The best").Page("Yahoo! Address
Book -").Link("Mail").Click
Browser("Yahoo! Mail - The best").Page("Yahoo! Mail -
TestUser").Sync
===========================================================
Here the page title is continuously changing. but, all
titles contain "Yahoo!"
When ever, you click on any tabs, i.e. (mail, compose,
addresses, etc), the page title changes. but, still
contains "Yahoo!" as part of the string. in this case, we
can use regular expression (while using descriptive
programming):
============================================================
====
Browser("Yahoo! Mail - The best").Page
("ClassName:=Page", "title:=Yahoo.*").WebEdit
("ClassName:=WebEdit", "Name:=login").Set "TestUser"
| Is This Answer Correct ? | 4 Yes | 0 No |
i am trying to capture the URL from the open browser and store it. pls give me solution how we can do this in QTP. thanks
If the objects hierarchy is changing from build to build, then how you will handle that condition?
Explain data driven framework?
Which Databases supports for QTP?
how qtp identifies objects of application.
how to retrieve the xml file data through qtp. can anybody send script for this..
Can any body help me to write descriptive program to find a cell value (say 2 row, 3rd column) in a datatable which is creating dynamically and statically
What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........
when we open flight reservation.at that time where we found synchronization point() and wait function().i m confused .i want this answer.
What is contained in the object repository?
What is clean sweep?
Explain about the Test Fusion Report of QTP ?