<div dir="ltr">Ok,<div><br></div><div>my environment is Windows 7, Chrome 28, chromedriver 2.1, ruby 1.9.3p194 (2012-04-20) [i386-mingw32], watir-webdriver0.6.4, selenium-webdriver 2.33.0</div><div><br></div><div>if I run your exact script, I get an error saying:</div>
<div><i>degree.rb:4: invalid multibyte char (US-ASCII)</i><br></div><div><i><br></i></div><div>if I add</div><div><i># -*- encoding : utf-8 -*-</i><br></div><div>as first line it runs, but it leaves out the degree-symbol as I described in my first email.</div>
<div><br></div><div>cheers,</div><div>tobi</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 22, 2013 at 1:12 PM, Željko Filipin <span dir="ltr"><<a href="mailto:zfilipin@wikimedia.org" target="_blank">zfilipin@wikimedia.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im">On Fri, Jul 19, 2013 at 5:16 PM, Tobi Gritschacher <span dir="ltr"><<a href="mailto:tobias.gritschacher@wikimedia.de" target="_blank">tobias.gritschacher@wikimedia.de</a>></span> wrote:<br>
</div><div class="gmail_extra">



<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>
In a selenium test, if I try to enter a string containig the ° (degree) symbol into a textfield (e.g. 42° 09.231' N 008° 34.386' E), that would not work with chrome. it works fine in firefox, but in chrome it just leaves the ° out, resulting in a string like 42 09.231' N 008 34.386' E. do you know if there is a solution for that?<br>




</div><div>
<div>addition: I did already add "# -*- encoding : utf-8 -*-" in the first line of the testfile.</div></div></div></blockquote><div><br></div></div><div>It works on my machine! :) </div><div><br></div>I have Mac 10.8.4, Chrome 28, Ruby 2.0.0p247, selenium-webdriver 2.33.0, watir-webdriver 0.6.4, ChromeDriver v2.1.210398.</div>



<div class="gmail_quote"><br></div><div class="gmail_quote">If I run this Ruby script:</div><div class="gmail_quote"><br></div><div class="gmail_quote"><div class="gmail_quote">require "watir-webdriver"</div><div class="gmail_quote">


browser = Watir::Browser.new :chrome</div><div class="gmail_quote">browser.goto "<a href="http://google.com" target="_blank">google.com</a>"</div><div class="gmail_quote">browser.text_field(name: "q").set "42° 09.231' N 008° 34.386' E"</div>


<div class="gmail_quote">browser.screenshot.save "chrome.png"</div><div><br></div></div><div class="gmail_quote">degree symbol is entered into text field (see attached screen shot).<br></div><div class="gmail_quote">


<br></div><div class="gmail_quote">Can you share your script and environment?</div><span class="HOEnZb"><font color="#888888"><div class="gmail_quote"><br></div><div class="gmail_quote">Željko</div></font></span></div></div>

<br>_______________________________________________<br>
QA mailing list<br>
<a href="mailto:QA@lists.wikimedia.org">QA@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/qa" target="_blank">https://lists.wikimedia.org/mailman/listinfo/qa</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div>Tobi Gritschacher</div><div>Software Developer - Wikidata - <a href="http://www.wikidata.org" target="_blank">http://www.wikidata.org</a></div>
<div><br></div><div>Imagine a world, in which every single human being can freely</div><div>share in the sum of all knowledge. That‘s our commitment.<br></div><div><br></div><div>Wikimedia Deutschland e.V. | Obentrautstraße 72 | 10963 Berlin<br>
</div></div><div>Phone <a value="+4930219158260" style="color:rgb(17,85,204)">+49 (0)30 219 158 260</a><br></div><div><br><a href="http://www.wikimedia.de/" style="color:rgb(17,85,204)" target="_blank">http://wikimedia.de</a><br>
<div><br>Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e.V. Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer <a value="+12768151985" style="color:rgb(17,85,204)">27/681/51985</a>.</div>
</div></div>
</div>