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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you create regression test packs?

853


If there is a change in the object type eg: A button is changed as link, 1. How to edit that in the shared object repository. 2.What options are available to edit the object within shared object repository other than copy from loca; 3.What would be the effect of the change in Coded Scripts within QTP and Functions stored in .vbs file which are loaded and used in QTP

1519


Whats the realtime QTP testing process

2186


What is ‘object spy’ and what is the function of object spy in qtp?

760


Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com

1693


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

1819


what are the limitations of smart identification in qtp 9.0

2122


How do Parameterization and Data-Driving relate to each other in QTP?

812


How to release all resources file from the QTP?

1265


What are output values and why they are used ?

817


Can we create a qtp test from qc?

797


What are the types of object repository?

827


Is it possible to merge two object repository files in qtp?

832


Is it possible to change the values of analog recording?

816


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

789