in login module login button chage regularly(means login
button change to submit button).What is the code for it.

Answers were Sorted based on User's Feedback



in login module login button chage regularly(means login button change to submit button).What is t..

Answer / ramchandra patil

Hi,
If the buttons label changes from login to submit then u can use descriptive programing by creating object without using label property. U can use below code.

Set objButton=description.create
objButton("micclass").value="webbutton"
objButton("name").value="namepropertyvalue"
Browser("").page("").webbutton(objButton).click

Pls let me know if u have ny doubt...

Ram

Is This Answer Correct ?    2 Yes 0 No

in login module login button chage regularly(means login button change to submit button).What is t..

Answer / guest

1.Suppose some point of time ,test engineer will come to know,"login" button name changed to "submitt",then test engineer can intimate developer,if any changes are made by developer,it will affect testing also. we can request developer,if developer makes changes for the old fucntionalities,could u plz inform testing team?
according test enginner can change in the script.
2.If any button names are changed by developer,developer will intimate automation test engineer regarding about any changed made to object name usually.

Is This Answer Correct ?    0 Yes 0 No

in login module login button chage regularly(means login button change to submit button).What is t..

Answer / shekhar

If name property keeps on changing then we can go with other
properties except name .You can take Html Id and use
descriptive programming as it used in the first post.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How is GC reddy online program Will i get placed How are the placements.

1 Answers  


can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist 'code ************** Call login("lal="," " ) wait(5) Call errormsg("Invalid email address. [?]" ) Function errormsg(msg) msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist if msgexist then Reporter.ReportEvent micPass,"enter valid username or pwd ",msg else Reporter.ReportEvent micFail, "entered valid uname and pwd",msg end if End Function

5 Answers  


For which type of projects the iterative model is not suitable?

0 Answers  


What is the difference between browser sync and page sync in QTP?

2 Answers  


How to use Regular Expressions in QTP

1 Answers  






hi,i have a pblm in qtp,im testing an webappl in which different types of error pop up messages are displayed which qtp is not differentiating or it is not recognising. how do i make it recognise different popup errorm messages while writing script?

4 Answers  


What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........

10 Answers   ADP, AZTEC,


without Qtp features can we automated?

1 Answers   IBM,


How u perform Batch Program in QTP?

3 Answers  


What is the difference between Dim And Redim

4 Answers   Hotel Jobs, IBM, Microsoft,


Is it possible to call out to Java from QTP?

2 Answers  


Reverse a string keeping the words in the string as it is. E.G. "Quick Test Professional" O/P "Professional Test Quick"

5 Answers   Cap Gemini,


Categories