It doesn't work but I achieved it with: @browser.span(:id => "lblPassword").click @browser.text_field(:id, "django-password-field").set "administrator"
On 18 September 2013 12:01, Joseph Fleck <[email protected]> wrote: > @browser.input(:class=>"passwordInput" ).send_key "<password>" > > Joe > > > Luis Espla <[email protected]> wrote: > > Hello, I have the next html code and I want to change the text in the span > html tag, How can I do it? > > <div class="loginBoxField"> > <span id="lblPassword" class="loginBoxLabel">Input your > password</span> > <input style="display: none;" id="django-password-field" > class="passwordInput" name="password" type="password"> > </div> > > The text I want to change is "Input your password" > Sincerely Regards > > -- > -- > 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] > > --- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- 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] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
