Hi Sohail,

Can you provide more of the html code that surrounds the field you
looking at setting?

Thanks,
Joe

On Sat, Feb 2, 2013 at 1:19 PM, Sohail Mirza <[email protected]> wrote:
> Hi,
>
> my question is how to set value in the textbox with following html code
>
> <div id="idDiv_PWD_UsernameExample" class="placeholder ltr_override"
> aria-hidden="true" style="cursor: text;">[email protected]</div>
>
>
>
> 1st:
> @browser = Watir::Browser.new :chrome
> @browser.div(:id => "idDiv_PWD_UsernameExample").set '[email protected]'
>
> 2nd:
> @browser = Watir::Browser.new :chrome
> @browser.text_field(:id => "idDiv_PWD_UsernameExample").set
> ("[email protected]")
>
>
> 3rd:
> @browser = Watir::Browser.new :chrome
> @browser.div(:class => "placeholder ltr_override").set ("[email protected]")
>
>
> --
> --
> 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.


Reply via email to