Any reason you can't use the placeholder attribute to locate it?

browser.text_field(:placeholder => "User Name").set("user")

On Monday, April 29, 2013 3:03:27 PM UTC-4, mc060200778 wrote:
>
> Hi,
>
> In the following rendered HTML code, can i use Value attribute to set 
> value into the user name field? like as follow
>
> *Browser.text_field(:value,"UserName").set "Hi"*
>
> <input type="text" data-bind="value: UserName" class="input-block-level" 
> placeholder="User Name">
>
> kindly advise.
> Thanks
>

-- 
-- 
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.


Reply via email to