adspace
Write Descriptiv prg 4 login
logn....txt bx
password---txt bx
ok---btn
Answer Posted / suresh.testing
In order to develop this script we should know the test
object descriptive properties & values (By using objectspy)
Ex:Static Descriptive program for login page(Banking
application)
Browser("name:=usRanfordbank").Page("title:=Ranfordbank").WebEdit("html
id:=txtuid").Set "Admin"
Browser("name:=usRanfordbank").Page("title:=Ranfordbank").WebEdit("html
id:=txtpwd").Set "suresh"
Browser("name:=usRanfordbank").Page("title:=Ranfordbank").Image("html
id:=login").Click
------------------------------------------------------------Ex:
Dynamic Descriptive program for login page (banking application
set br=description.create
br("name").value="usRanfordbank"
set pg=description.create
pg("title").value="usRanfordbank"
set uid=description.create
uid("html id").value="txtuid"
set pwd=description.create
pwd("html id").value="txtpwd"
set img=description.create
img("html id").value="login"
Browser(br).Page(pg).WebEdit(uid).Set "Admin"
Browser(br).Page(pg).WebEdit(pwd).Set "suresh"
Browser(br).Page(pg).Image(img).Click
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.
Tell some commonly used Excel VBA functions?
Can you brief the hurdles you faced during Automation testing?
Hybrid framework supports Descriptive programming. Is it true?
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
How software tester can use constants and variables in scripts?
can anyone tell me from where i can download qtp demo or crack version
we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?
Hi All, How to get repeated word in string . Thanks Balaji
what type of framework u r using in ur organization
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com
I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com
Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ
When to use shared and local object repository?