Quality Testing

Quality is delighting customers

Hello all,

I need a quick help buddies. Does any one here in this community work in Watir automated tool?

Anyways my question is, I wanted to have the the sample test script for sign in form. Specially for password filed authentication.

I dont need any Google answers please.............

I tried all of them long back and I am looking for answers from some real time for the password field.

I tried many for example: require "rubygems"                  
require "watir"                     
# use watir gem
url = 'http://www.slide.com'       
# declaring the urlvalue
b = Watir::IE.new  
b.goto(url) 
b.link(:text, "Sign In").click
b.text_field(:id,"username").set("madhuri1234") 
b.text_field(:id,"Passwd").set("test1234")
b.button(:value, "Sign In").click

When I run this the scripts stops till populating the user name values and exits.

need help? 

Any help highly appreciated.

thanks in advance to all.
Madhuri

Views: 160

Reply to This

Replies to This Discussion

require "watir"
# use watir gem
url = 'http://www.slide.com'
# declaring the urlvalue
b = Watir::IE.new
b.goto(url)
b.link(:text, "Sign In").click
b.text_field(:id,"login_username").set("madhuri1234")
b.text_field(:id,"login_password").set("test1234")
b.button(:value, "OK").click
Hi Please find the following script\lines

require "watir"
# use watir gem
url = 'http://www.slide.com'
# declaring the urlvalue
b = Watir::IE.new
b.goto(url)
b.link(:text, "Sign In").click
b.text_field(:id,"login_username").set("madhuri1234")
b.text_field(:id,"login_password").set("test1234")
b.button(:value, "OK").click
Hello Ogeti Siva Satyanarayana Garu.

Thanks a lot in tons. You solved it. I am happy.

Can you please send me few sample watir test scripts like for a real time site( if you had worked and u have)
no Google sample scripts andi. can you please email me to madhurinpu@gmail.com

This would be a great help to me.
i wud just use the logic.
Waiting for ur response
hello anybody reply please? Its very urgent!

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2022   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service