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 can i pass parameters into function?

4 Answers   Livetek,


How we can call the scripit from another scripit in QTP?,Not a call Action

12 Answers  


What are the properties you would use for identifying a browser & page when using descriptive programming ?

2 Answers  


What are SetToProperty, SetRoProperty, GetToProperty scripting?

4 Answers  


what testing activities u may want to automate?

2 Answers  






How smart identification works in qtp ?

0 Answers  


How can i learn Descriptive programming in QTP. Please reply.

3 Answers  


I want to check in the data table(Globalsheet) column exist or not through script .If column not exist only proceeded to next step Pls tell me how to proceeded?

5 Answers   Syntel,


Hi I am new to QTP. we are planning to implement automation for the application. I am trying to execute the following script: Set ExcelObj=CreateObject ("Excel.Application") ExcelObj.WorkBooks.Add Set NewSheet=ExcelObj.Sheets.Item(1) NewSheet.Name="Order" ExcelObj.Cells(1, 1).Value = "Name" ExcelObj.Cells(1, 2).Value = "Ordernum" ExcelObj.Cells(2, 1).Value = "nam" ExcelObj.Cells(2, 2).Value = "21" ExcelObj.ActiveWorkbook.SaveAs "c:\test1.xls" ExcelObj.Quit Set ExcelObj = Nothing in the above script for the line(ExcelObj.Cells(2, 2).Value = "21") it is inserting the value 21 successfully.this is fine But if i want to insert a variable instead of the constant value then what should be the modification in the script. For example: If user retrives a value throug "GetRoProperty" and wants to insert the value into then how the script changes?

1 Answers  


QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue

1 Answers  


what are the different Frame Works in Quick Test Proffessional testing

5 Answers   Wipro,


what is the purpose of .vbs file?

2 Answers   HCL,


Categories