Ok, 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
if I run your exact script, I get an error saying: *degree.rb:4: invalid multibyte char (US-ASCII)* * * if I add *# -*- encoding : utf-8 -*-* as first line it runs, but it leaves out the degree-symbol as I described in my first email. cheers, tobi On Mon, Jul 22, 2013 at 1:12 PM, Željko Filipin <[email protected]>wrote: > On Fri, Jul 19, 2013 at 5:16 PM, Tobi Gritschacher < > [email protected]> wrote: > >> 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? >> addition: I did already add "# -*- encoding : utf-8 -*-" in the first >> line of the testfile. >> > > It works on my machine! :) > > 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. > > If I run this Ruby script: > > require "watir-webdriver" > browser = Watir::Browser.new :chrome > browser.goto "google.com" > browser.text_field(name: "q").set "42° 09.231' N 008° 34.386' E" > browser.screenshot.save "chrome.png" > > degree symbol is entered into text field (see attached screen shot). > > Can you share your script and environment? > > Željko > > _______________________________________________ > QA mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/qa > > -- Tobi Gritschacher Software Developer - Wikidata - http://www.wikidata.org Imagine a world, in which every single human being can freely share in the sum of all knowledge. That‘s our commitment. Wikimedia Deutschland e.V. | Obentrautstraße 72 | 10963 Berlin Phone +49 (0)30 219 158 260 http://wikimedia.de <http://www.wikimedia.de/> 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 27/681/51985.
_______________________________________________ QA mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/qa
