saran_techie has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

Am into automating the Unit level validations of the controls in a web application. I just want to set values for all the controls in a screen. Let's assume the screen is a Login page. I have two textfields "Username", "Password" and a button "Enter". While writing PERL code which name should I mention for the controls, whether I have to use the Label names or the Textfield names which were used by the developer while developing the application?

Thank You,

Saravanan.S

  • Comment on How to set values for Controls in an application

Replies are listed 'Best First'.
Re: How to set values for Controls in an application
by marto (Cardinal) on Jan 29, 2009 at 09:30 UTC
Re: How to set values for Controls in an application
by Anonymous Monk on Jan 29, 2009 at 09:19 UTC
    You wouldn't use the label, you would use the name. Hopefully you would write Perl code (not PERL).