This is a Firefox Bug:

https://code.google.com/p/selenium/issues/detail?id=6074

It will pass if you use chrome


On Thursday, November 6, 2014 5:15:04 AM UTC-6, [email protected] 
wrote:
>
> Hi,
>
> While creating a search script using *&(ampersand)* then I am facing an 
> issue. 
> In ruby *&(ampersand)* is not displaying in the textbox and getting 
> removed when text printed in the textbox.
>
> *Please view below my script:-*
>
>                         require 'watir-webdriver'
>                         $browser = Watir::Browser.new :firefox
>                         $browser.goto 'dir.indiamart.com'
>                         $browser.select_list(:id => 
> 'select-search').option(:text => 'Products').when_present.select
>                        #$browser.text_field(:id => 'search_string').clear()
>                         $browser.text_field(:id => 'search_string').set 
> 'bags && bottels'
>                         $browser.text_field(:id => 
> 'search_string').send_keys '&'
>                         $browser.input(:id => 'btnSearch').fire_event 
> :onclick
>                         if ($browser.url=="
> http://dir.indiamart.com/search.mp?ss=bags+%26+bottels";) then
>                                 puts __FILE__ + " :-  Searching with 
> special character   =>  Success"
>                         else
>                                 puts __FILE__ + " :-  Searching with 
> special character   =>  Failed"
>                         end
>                         $browser.quit
> Please suggest what should I do to complete my script.
>
>
> Follow IndiaMART.com <http://www.indiamart.com> for latest updates on 
> this and more: <https://plus.google.com/+indiamart> 
> <https://www.facebook.com/IndiaMART> <https://twitter.com/IndiaMART> 
> Mobile Channel: 
> <https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=668561641&mt=8>
>  
> <https://play.google.com/store/apps/details?id=com.indiamart.m> 
> <http://m.indiamart.com/>
>
> <https://www.youtube.com/watch?v=DzORNbeSXN8&list=PL2o4J51MqpL0mbue6kzDa6eymLVUXtlR1&index=2>Watch
>  
> how Vijay fulfills all his business needs with IndiaMART - 
> *Click Here 
> <https://www.youtube.com/watch?v=eZUDA7ReDg8&list=PL2o4J51MqpL0mbue6kzDa6eymLVUXtlR1&index=11>*

-- 
-- 
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/d/optout.

Reply via email to