<div class="gadget default"
<div class="view">
<div id="content" class="">
<form id="loginform" class="aui gdt" name="loginform" action="#"
method="POST">
<fieldset>
<div>
<label id="usernamelabel" accesskey="u" for="usernameinput">
<input id="usernameinput" class="text medium-
field" type="text" tabindex="1" name="os_username">
<span id="usernameerror" class="error"></span>
this is code for page ,where i am unable to access to username text
field.Please help me out .I am using firewatir with firefox version
3.6.6 and Windows 7.
thanks
Abhirevo
On Dec 14, 11:15 pm, abhirevo1 <[email protected]> wrote:
> Hi Friends,
>
> I tried to access to an HTML element through div .I wrote it as
> *ie.div(:class,"gadget
> default").text_field(:id,"usernameinput").set("xyz")*becuase system
> showed me error:
> *Unable to locate element* via .
> *ie.text_field(:id,"usernameinput").set("xyz")*
> but still I am getting following error .
> Please help.
>
> *C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/jssh_socket.rb:19:in
> `js_eval': missing ; before statement (JsshSocket::JSSyntaxError)
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/jssh_socket.rb:27:in
> `js_eval_method'
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/element.rb:936:in
> `enabled?'
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/element.rb:922:in
> `assert_enabled'
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/elements/text_field.rb:150:in
> `set'*
>
> I want to make confirm that now Watir is able to access to username field or
> not because now "*Unable to locate element*"error is not coming although
> some new errors are produced.
> And also if somebody has idea why these new errors are coming, it would be a
> great help for me.
>
> Thanks
> Abhirevo
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]