Hi Prashant,

In this case you might need to keep a excel file to map the actual textbox name to the label.  

U might need to read from this  excel file.

Regards,

Vishal


 
--- pj jha <[EMAIL PROTECTED]> wrote:
 
From: pj jha <[EMAIL PROTECTED]>
Date: Wed, 16 Nov 2005 14:17:49 +0000 (GMT)
To: [email protected]
Subject: [Wtr-general] Problem in WATiR

Hi,
Problem is not as you understand. I am going to explain in detail.
Actually I am writing test script in ruby and I am using WATiR for same. ItÂ’s an automatic testing script. When I start the execution of script it entered value and test the web pages. I am giving one example for that. Suppose I have to test login page,! so for login page I have to entered user id and password in textbox and click the submit button. It will happen automatically.
So at first I write one library for login page then another fellow will call that library for testing of login page. The page structure is as
User Id:
   
  
Password:
So tester want to entered user id and password in the above textboxes, and tester does not know anything of textbox like id, name etc. but tester knows the name of label (i.e. User Id and Password), so  he will pass the name of label and value which he/she wants to entered in that textbox.
 
So now I am not getting how I can write the code for this situation.
Please send me any sample if you get the time.
Thanks and regards,
-Prashant


Enjoy this Diwali with Y! India Click here

 

Join SQAtester.com Community ---> http://www.sqatester.com/testersarea/joinus.htm
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to