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

i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

1613


how interviews will be on QTP?

1527


How can I use Call dlls in QTP ?

1802


if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp

23950


When to use shared and local object repository?

646






How do you test DLL files using automation Tool QTP?

2743


How to creating an output value using quicktest professional (qtp)?

579


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

1464


Explain the terms test and business component?

556


What is a recovery scenario?

577


How to recognise the webelement and verifying that webelement is enabled?

1657


Please Don't mind .i want in detail the real time process i.e in each document what it contains.

1447


What is the limitation to XML Checkpoints?

1618


What are the different attribute used with regular expression?

540


How to test results for qtp ?

793