~~~
require 'watir-webdriver'

browser = Watir::Browser.new :firefox

begin
  browser.goto "data:text/html;content-type=utf-8,#{URI.escape DATA.read}"
  browser.text_field(:name,"confirmPassword").set("hemanth")
ensure
  browser.close
end


__END__
<html>
<body>
<div class="row">
        <span class="float" style="width:350px">
          Default new user password:
          <br>
          <input name="password" style="width:100px" value="" maxlength="12" 
type="password">
          
        </span>
        <span class="floatright helptext">
          This password will be used for new users that do not have a password 
in the imported file.
        </span>
        <span class="floatend"></span>
      </div>
      <div class="row">
        <span class="float">
          Confirm password:
          <br>
          <input name="confirmPassword" style="width:100px" value="" 
maxlength="12" type="password">
          
        </span>
        <span class="floatend"></span>
      </div>
</body>
</html>
~~~

For the code above with `0.6.2` i'm getting the below error :  
~~~
#<Watir::Exception::UnknownObjectException: unable to locate element, using {:na
me=>"confrimPassword", :tag_name=>"input or textarea", :type=>"(any text type)"}
~~~


---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/179
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to