Problem with enterText() and WT.setLocaleToCurrent

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

Problem with enterText() and WT.setLocaleToCurrent

Postby 3061 » Wed Feb 25, 2009 9:23 am

I have this interesting problem:

I neet WindowTester to enter a Windows path name (example: C:/firstFolderName/secondFolderName/filename.txt) into a text box. When I type it into the field myself, everything enters fine. However when I do
Code: Select all
ui.enterText("C:/firstFolderName/secondFolderName/filename.txt");

the text box gets filled with C:7firstFolderName7secondFolderName7filename.txt, all slashes are printed as sevens. I suspected it was an issue with international keyboards so I tried adding the WT.resetLocale(); again (although I already do that in setUp and reset it tearDown.

But even if I have
Code: Select all
WT.setLocaleToCurrent()
ui.enterText("C:/firstFolderName/secondFolderName/filename.txt");
WT.resetLocale();

it still prints the "7" instead of "/" and I can't enter a Windows Path Name.

PS:
"//" is turned into "77"
"\\" is turned into "ß"
"$" is turned into "$"
"-" is turned into "-" (on the german keyboard, "-" is where "\" is on the US keyboard)
"ä" is turned into "ä"

Please help :cry:
3061
 
Posts: 42
Joined: Mon Feb 23, 2009 12:43 am

Re: Problem with enterText() and WT.setLocaleToCurrent

Postby gnebling » Wed Feb 25, 2009 12:23 pm

What OS and version of WindowTester, Eclipse and Java are you using?
gnebling
Moderator
 
Posts: 243
Joined: Tue Aug 22, 2006 7:49 am

Re: Problem with enterText() and WT.setLocaleToCurrent

Postby 3061 » Thu Feb 26, 2009 12:17 am

OS: Winows XP Pro SP3 in German, always with newest updates
Java: version 1.6.0_11 (Java SE Runtime Environment build 1.6.0_11-b03)
WindowTester: SWT Professional version 3.7.0.200901230516 for Eclipse 3.3
Eclipse: Version 3.3.2 (English Version)

Here's some of my Eclipse's Configuration Details, maybe there's some relevant info in there:
Code: Select all
*** Date: Donnerstag, 26. Februar 2009 9:24 Uhr MEZ

*** Platform Details:

*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
eclipse.buildId=M20080221-1800
eclipse.commands=-os
win32
-ws
win32
-arch
x86
-showsplash
C:\Programme\Eclipse\eclipse-rcp-europa-winter-win32\eclipse\\plugins\org.eclipse.platform_3.3.3.r33x_r20080129\splash.bmp
-launcher
C:\Programme\Eclipse\eclipse-rcp-europa-winter-win32\eclipse\eclipse.exe
-name
Eclipse
--launcher.library
C:\Programme\Eclipse\eclipse-rcp-europa-winter-win32\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
-startup
C:\Programme\Eclipse\eclipse-rcp-europa-winter-win32\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-vm
C:\Programme\Java\jre6\bin\client\jvm.dll
eclipse.ee.install.verify=false
eclipse.product=org.eclipse.sdk.ide
eclipse.startTime=1235636153663
eclipse.vm=C:\Programme\Java\jre6\bin\client\jvm.dll
eclipse.vmargs=-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256M
-Djava.class.path=C:\Programme\Eclipse\eclipse-rcp-europa-winter-win32\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
eof=eof
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=C:\Programme\Eclipse\eclipse-rcp-europa-winter-win32\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
java.class.version=50.0
java.endorsed.dirs=C:\Programme\Java\jre6\lib\endorsed
java.ext.dirs=C:\Programme\Java\jre6\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.home=C:\Programme\Java\jre6
java.io.tmpdir=C:\DOKUME~1\weis\LOKALE~1\Temp\
java.library.path=C:\Programme\Eclipse\eclipse-rcp-europa-winter-win32\eclipse;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Programme\Java\jre6\bin\client;C:\Programme\Java\jre6\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\ATI Technologies\ATI.ACE\Core-Static;C:\Programme\QuickTime\QTSystem\;C:\Programme\TortoiseSVN\bin
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.6.0_11-b03
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.6
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.6.0_11
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=11.0-b16
line.separator=

org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
org.apache.commons.logging.simplelog.defaultlog=off
org.apache.commons.logging.simplelog.log.httpclient.wire.header=off
org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient=off
org.eclipse.equinox.launcher.splash.location=C:\Programme\Eclipse\eclipse-rcp-europa-winter-win32\eclipse\\plugins\org.eclipse.platform_3.3.3.r33x_r20080129\splash.bmp
org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JavaSE-1.6
org.osgi.framework.language=de
org.osgi.framework.os.name=WindowsXP
org.osgi.framework.os.version=5.1
org.osgi.framework.processor=x86
org.osgi.framework.system.packages=javax.accessibility,javax.activation,javax.activity,javax.annotation,javax.annotation.processing,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.jws,javax.jws.soap,javax.lang.model,javax.lang.model.element,javax.lang.model.type,javax.lang.model.util,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.script,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.tools,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.bind,javax.xml.bind.annotation,javax.xml.bind.annotation.adapters,javax.xml.bind.attachment,javax.xml.bind.helpers,javax.xml.bind.util,javax.xml.crypto,javax.xml.crypto.dom,javax.xml.crypto.dsig,javax.xml.crypto.dsig.dom,javax.xml.crypto.dsig.keyinfo,javax.xml.crypto.dsig.spec,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.soap,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stax,javax.xml.transform.stream,javax.xml.validation,javax.xml.ws,javax.xml.ws.handler,javax.xml.ws.handler.soap,javax.xml.ws.http,javax.xml.ws.soap,javax.xml.ws.spi,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.css,org.w3c.dom.events,org.w3c.dom.html,org.w3c.dom.ls,org.w3c.dom.ranges,org.w3c.dom.stylesheets,org.w3c.dom.traversal,org.w3c.dom.views ,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
org.osgi.framework.vendor=Eclipse
org.osgi.framework.version=1.4.0
org.osgi.supports.framework.extension=true
org.osgi.supports.framework.fragment=true
org.osgi.supports.framework.requirebundle=true
os.arch=x86
os.name=Windows XP
os.version=5.1
osgi.arch=x86
osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start, org.eclipse.core.runtime@start
osgi.bundlestore=C:\Programme\Eclipse\eclipse-rcp-europa-winter-win32\eclipse\configuration\org.eclipse.osgi\bundles
osgi.compatibility.bootdelegation=true
osgi.configuration.area=file:/C:/Programme/Eclipse/eclipse-rcp-europa-winter-win32/eclipse/configuration/
osgi.framework=file:/c:/Programme/Eclipse/eclipse-rcp-europa-winter-win32/eclipse/plugins/org.eclipse.osgi_3.3.2.R33x_v20080105.jar
osgi.framework.beginningstartlevel=1
osgi.framework.shape=jar
osgi.framework.version=3.3.2.R33x_v20080105
osgi.install.area=file:/C:/Programme/Eclipse/eclipse-rcp-europa-winter-win32/eclipse/
osgi.instance.area=file:/C:/Programme/Eclipse workspace/
osgi.instance.area.default=file:/C:/Dokumente und Einstellungen/weis/workspace/
osgi.logfile=C:\Programme\Eclipse workspace\.metadata\.log
osgi.manifest.cache=C:\Programme\Eclipse\eclipse-rcp-europa-winter-win32\eclipse\configuration\org.eclipse.osgi\manifests
osgi.nl=de_DE
osgi.os=win32
osgi.requiredJavaVersion=1.5
osgi.splashLocation=C:\Programme\Eclipse\eclipse-rcp-europa-winter-win32\eclipse\\plugins\org.eclipse.platform_3.3.3.r33x_r20080129\splash.bmp
osgi.splashPath=platform:/base/plugins/org.eclipse.platform
osgi.syspath=c:\Programme\Eclipse\eclipse-rcp-europa-winter-win32\eclipse\plugins
osgi.ws=win32
path.separator=;
sun.arch.data.model=32
sun.boot.class.path=C:\Programme\Java\jre6\lib\resources.jar;C:\Programme\Java\jre6\lib\rt.jar;C:\Programme\Java\jre6\lib\sunrsasign.jar;C:\Programme\Java\jre6\lib\jsse.jar;C:\Programme\Java\jre6\lib\jce.jar;C:\Programme\Java\jre6\lib\charsets.jar;C:\Programme\Java\jre6\classes
sun.boot.library.path=C:\Programme\Java\jre6\bin
sun.cpu.endian=little
sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop=windows
sun.io.unicode.encoding=UnicodeLittle
sun.jnu.encoding=Cp1252
sun.management.compiler=HotSpot Client Compiler
sun.os.patch.level=Service Pack 3
user.country=DE
user.dir=C:\Programme\Eclipse\eclipse-rcp-europa-winter-win32\eclipse
user.home=C:\Dokumente und Einstellungen\weis
user.language=de
user.name=weis
user.timezone=Europe/Berlin
user.variant=

*** Features:
com.instantiations.eclipse.core.feature (6.0.0.200901230459) "CodePro - Core"
com.instantiations.eclipse.coverage.feature (6.0.0.200901230630) "CodePro - Coverage"
com.omondo.uml.free (3.3.0.v20071210) "EclipseUML 2007 Europa Free Edition for Eclipse 3.3"
com.windowtester.runtime (3.7.0.200901230516) "WindowTester Common Runtime Plug-in"
org.eclipse.cvs (1.0.2.r33x_r20080129-7C79_B_GLJwq3I9ZCD8L_) "Eclipse CVS Client"
org.eclipse.cvs.source (1.0.2.r33x_r20080129-7C79_B_GLJwq3I9ZCD8L_) "Eclipse CVS Client SDK"
org.eclipse.emf (2.3.2.v200802051830) "Eclipse Modeling Framework (EMF)"
org.eclipse.emf.codegen (2.3.1.v200802051830) "EMF Template Code Generator"
org.eclipse.emf.codegen.ecore (2.3.2.v200802051830) "EMF Ecore Code Generation"
org.eclipse.emf.codegen.ecore.ui (2.3.1.v200802051830) "EMF Ecore Code Generation UI"
org.eclipse.emf.codegen.ui (2.3.1.v200802051830) "EMF Template Code Generator UI"
org.eclipse.emf.common (2.3.1.v200802051830) "EMF Common"
org.eclipse.emf.common.ui (2.3.1.v200802051830) "EMF Common UI"
org.eclipse.emf.converter (2.3.1.v200802051830) "EMF Model Convert Support"
org.eclipse.emf.doc (2.3.2.v200802051830) "Eclipse Modeling Framework (EMF) Programmers Guide"
org.eclipse.emf.ecore (2.3.2.v200802051830) "EMF Ecore"
org.eclipse.emf.ecore.edit (2.3.1.v200802051830) "EMF Ecore Edit Support"
org.eclipse.emf.ecore.editor (2.3.1.v200802051830) "Sample Ecore Editor"
org.eclipse.emf.ecore.sdo (2.3.1.v200802051830) "EMF Service Data Objects (SDO)"
org.eclipse.emf.ecore.sdo.doc (2.3.2.v200802051830) "EMF Service Data Objects (SDO) Programmers Guide"
org.eclipse.emf.ecore.sdo.edit (2.3.1.v200802051830) "EMF Service Data Objects (SDO) Edit Support"
org.eclipse.emf.ecore.sdo.editor (2.3.1.v200802051830) "EMF Service Data Objects (SDO) Editor"
org.eclipse.emf.ecore.sdo.source (2.3.2.v200802051830) "EMF Service Data Objects (SDO) Source"
org.eclipse.emf.edit (2.3.2.v200802051830) "EMF Edit"
org.eclipse.emf.edit.ui (2.3.1.v200802051830) "EMF Edit UI"
org.eclipse.emf.mapping (2.3.1.v200802051830) "EMF Mapping "
org.eclipse.emf.mapping.ecore (2.3.1.v200802051830) "Eclipse Modeling Framework (EMF) - org.eclipse.emf.mapping.ecore"
org.eclipse.emf.mapping.ecore.editor (2.3.1.v200802051830) "Eclipse Modeling Framework (EMF) - org.eclipse.emf.mapping.ecore.editor"
org.eclipse.emf.mapping.ui (2.3.1.v200802051830) "EMF Mapping UI"
org.eclipse.emf.source (2.3.2.v200802051830) "Eclipse Modeling Framework (EMF) Source"
org.eclipse.emf.validation (1.2.0.v200805130238-35-9oA55S5L8G6FCT) "EMF Validation Framework Core"
org.eclipse.emf.validation.doc (1.2.1.v200807161729-2308s733I3E6G4B5F) "EMF Validation Framework Documentation"
org.eclipse.emf.validation.ocl.source (1.2.0.v200805130238-11-7w311916241349) "EMF Validation Framework OCL Integration Source"
org.eclipse.emf.validation.source (1.2.0.v200805130238-35-9oA55S5L8G6FCT) "EMF Validation Framework Source"
org.eclipse.gef (3.3.2.v20080129) "Graphical Editing Framework"
org.eclipse.gef.examples (3.3.1.v20070814) "Graphical Editing Framework Examples Source"
org.eclipse.gef.sdk (3.3.2.v20080129) "Graphical Editing Framework Developer Resources"
org.eclipse.gef.source (3.3.2.v20080129) "Graphical Editing Framework Developer Resources"
org.eclipse.jdt (3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7) "Eclipse Java Development Tools"
org.eclipse.jdt.source (3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7) "Eclipse Java Development Tools SDK"
org.eclipse.mylyn_feature (2.3.0.v20080225-2200) "Mylyn"
org.eclipse.mylyn.bugzilla_feature (2.3.0.v20080225-2200) "Mylyn"
org.eclipse.mylyn.context_feature (2.3.0.v20080225-2200) "Mylyn"
org.eclipse.mylyn.ide_feature (2.3.0.v20080225-2200) "Mylyn"
org.eclipse.mylyn.java_feature (2.3.0.v20080225-2200) "Mylyn"
org.eclipse.mylyn.pde_feature (2.3.0.v20080225-2200) "Mylyn"
org.eclipse.pde (3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL) "Eclipse Plug-in Development Environment"
org.eclipse.pde.source (3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL) "Eclipse Plug-in Development Environment Developer Resources"
org.eclipse.platform (3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft) "Eclipse Platform"
org.eclipse.platform.source (3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft) "Eclipse Platform Plug-in Developer Resources"
org.eclipse.rcp (3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc) "Eclipse RCP"
org.eclipse.rcp.source (3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc) "Eclipse RCP Plug-in Developer Resources"
org.eclipse.sdk (3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO) "Eclipse Project SDK"
org.eclipse.uml2 (2.1.1.v200708301222) "UML2"
org.eclipse.xsd (2.3.2.v200802051830) "XML Schema Infoset Model (XSD)"
org.eclipse.xsd.doc (2.3.2.v200802051830) "XML Schema Infoset Model (XSD) Programmers Guide"
org.eclipse.xsd.ecore.converter (2.3.2.v200802051830) "XML Schema Infoset Model (XSD) - org.eclipse.xsd.ecore.converter"
org.eclipse.xsd.edit (2.3.0.v200802051830) "XML Schema Edit Framework"
org.eclipse.xsd.editor (2.3.0.v200802051830) "XML Schema Editor"
org.eclipse.xsd.mapping (2.3.0.v200802051830) "XML Schema Infoset Model (XSD) - org.eclipse.xsd.mapping"
org.eclipse.xsd.mapping.editor (2.3.0.v200802051830) "XML Schema Infoset Model (XSD) - org.eclipse.xsd.mapping.editor"
org.eclipse.xsd.source (2.3.2.v200802051830) "XML Schema Infoset Model (XSD) Source"


*** Plug-in Registry:
com.ibm.icu (3.6.1.v20070906) "International Components for Unicode for Java (ICU4J)" [Active]
com.ibm.icu.source (3.6.1.v20070906) "International Components for Unicode for Java (ICU4J) source plug-in" [Resolved]
com.instantiations.assist.eclipse (6.0.0.200901230459) "CodePro" [Starting]
com.instantiations.assist.eclipse.admin (6.0.0.200901230459) "CodeProCore - Administration" [Starting]
com.instantiations.assist.eclipse.core (6.0.0.200901230459) "CodePro - Core" [Starting]
com.instantiations.assist.eclipse.core.ant (6.0.0.200901230459) "CodeProCore - Core Ant" [Starting]
com.instantiations.assist.eclipse.core.ui (6.0.0.200901230459) "CodeProCore - Core UI" [Starting]
com.instantiations.assist.eclipse.coverage (6.0.0.200901230630) "CodePro - Coverage" [Starting]
com.instantiations.assist.eclipse.coverage.ui (6.0.0.200901230630) "CodePro - Coverage UI" [Starting]
com.instantiations.assist.eclipse.fragment.jdt (6.0.0.200901230459) "CodeProCore - JDTFragment Fragment" [Resolved]
com.instantiations.assist.eclipse.fragment.jdt.core (6.0.0.200901230459) "CodeProCore - JDTCoreFragment Fragment" [Resolved]
com.instantiations.assist.eclipse.fragment.swt (6.0.0.200901230459) "CodeProCore - SWT Fragment" [Resolved]
com.instantiations.assist.eclipse.fragment.ui.ide (6.0.0.200901230459) "CodePro UI Fragment" [Resolved]
com.instantiations.assist.eclipse.fragment.ui.workbench (6.0.0.200901230459) "CodeProCore - UI Workbench Fragment" [Resolved]
com.instantiations.assist.eclipse.fragment.ui.workbench.texteditor (6.0.0.200901230459) "CodeProCore - UI Fragment" [Resolved]
com.instantiations.assist.eclipse.pattern (6.0.0.200901230459) "CodeProCore - Pattern Engine" [Starting]
com.instantiations.assist.eclipse.scheduler (6.0.0.200901230459) "CodePro - Scheduler" [Starting]
com.instantiations.common.core (5.3.2.200901230457) "Shared - Common Core Plug-in" [Active]
com.instantiations.common.help (5.3.2.200901230457) "Common Help" [Starting]
com.instantiations.common.ui (5.3.2.200901230457) "Shared - Common UI Plug-in" [Active]
com.instantiations.eclipse.analysis.dataflow (6.0.0.200901230459) "CodePro - Dataflow Analysis" [Starting]
com.instantiations.eclipse.analysis.expression (6.0.0.200901230459) "CodePro - Expressions" [Resolved]
com.instantiations.eclipse.analysis.flowpath (6.0.0.200901230459) "CodePro - Flow Path Analysis" [Resolved]
com.instantiations.eclipse.ast.editor (6.0.0.200901230459) "CodePro - AST Editor" [Resolved]
com.instantiations.eclipse.debug (5.3.2.200901230457) "Shared - Debug Plug-in" [Active]
com.instantiations.eclipse.mail (6.0.0.200901230459) "CodeProCore - E-mail Plug-in" [Starting]
com.instantiations.eclipse.mail.ui (6.0.0.200901230459) "CodeProCore - Mail UI Plug-in" [Starting]
com.instantiations.eclipse.model.jsp (6.0.0.200901230459) "CodePro - JSP Plug-in" [Resolved]
com.instantiations.eclipse.startup (5.3.2.200901230457) "Shared - Startup Plug-in" [Active]
com.instantiations.eclipse.ui (5.3.2.200901230457) "Shared - UI plugin" [Starting]
com.instantiations.eclipse.util (5.3.2.200901230457) "Shared - Eclipse Utilities Plug-in" [Active]
com.instantiations.swt.graph (6.0.0.200901230459) "CodeProCore - SWT Graph Plug-in" [Starting]
com.instantiations.tools (5.3.2.200901230457) "Shared - Tools Plug-in" [Starting]
com.itsolut.mantis.core (2.0.0.v20071029-2020) "Core Plug-in" [Installed]
com.itsolut.mantis.ui (2.0.0.v20071107-1327) "Ui Plug-in" [Installed]
com.jcraft.jsch (0.1.31) "JSch" [Resolved]
com.omondo.uml.core (3.3.0.v20071210) "Core Plug-in" [Starting]
com.omondo.uml.docgen (3.3.0.v20071210) "Eclipse UML Documentation Generation Plugin" [Starting]
com.omondo.uml.free (3.3.0.v20071210) "EclipseUML 2007 Europa Free Edition for Eclipse 3.3" [Resolved]
com.omondo.uml.jee (1.3.0.v20071210) "JEE Plug-in" [Starting]
com.omondo.uml.jee.reverse (1.3.0.v20071210) "JEE Reverse Plug-in" [Resolved]
com.omondo.uml.model (3.3.0.v20071210) "Model Plug-in" [Starting]
com.omondo.uml.std (3.3.0.v20071210) "EclipseUML STD" [Starting]
com.omondo.uml.std.doc.user (3.3.0.v20071210) "EclipseUML Standard Plugin Documentation" [Starting]
com.omondo.uml.wtp (1.3.0.v20071210) "Wtp Plug-in" [Starting]
com.omondo.uml.wtp.ui (1.3.0.v20071210) "WTP UI Plug-in" [Starting]
com.windowtester.eclipse.help (3.7.0.200901230516) "WindowTester Help Plug-in" [Starting]
com.windowtester.eclipse.ui (3.7.0.200901230516) "WindowTester UI Contributions" [Starting]
com.windowtester.runner (3.7.0.200901230516) "WindowTester Runner" [Starting]
com.windowtester.runtime (3.7.0.200901230516) "WindowTester Common Runtime Plug-in" [Active]
com.windowtester.runtime.junit4 (3.7.0.200901230516) "WindowTester JUnit4 Support Plug-in" [Resolved]
com.windowtester.runtime.legacy (3.7.0.200901230516) "Runtime Legacy Plug-in" [Starting]
com.windowtester.swing.recorder (3.7.0.200901230516) "WindowTester Swing Recorder Plug-in" [Active]
com.windowtester.swing.runtime (3.7.0.200901230516) "WindowTester Swing Runtime Plug-in" [Starting]
com.windowtester.swt.codegen (3.7.0.200901230516) "SWT Codegen Plug-in" [Starting]
com.windowtester.swt.gef.codegen (3.7.0.200901230516) "GEF Codegen Plug-in" [Resolved]
com.windowtester.swt.macosx (3.7.0.200901230516) "WindowTester Support for Mac OSX" [Installed]
com.windowtester.swt.platform.ext (3.7.0.200901230516) "Platform Extensions Plug-in" [Starting]
com.windowtester.swt.recorder (3.7.0.200901230516) "SWT Event Recorder Plug-in" [Active]
com.windowtester.swt.runtime (3.7.0.200901230516) "WindowTester SWT Runtime Plug-in" [Active]
com.windowtester.swt.runtime.gef (3.7.0.200901230516) "WindowTester GEF Runtime Plug-in" [Starting]
com.windowtester.swt.runtime.legacy (3.7.0.200901230516) "SWT Runtime Legacy Plug-in" [Starting]
com.windowtester.swt.runtime.os.win32 (3.7.0.200901230516) "WindowTester Win32 Platform Plug-in" [Resolved]
com.windowtester.swt.runtime.win32 (3.7.0.200901230516) "WindowTester Runtime Win32 Fragment" [Resolved]
[...]
Code: Select all
*** Current Install Configuration:
Install configuration:
Last changed on 18.02.2009
Location: file:/C:/Programme/Eclipse/eclipse-rcp-europa-winter-win32/eclipse/configuration/org.eclipse.update/platform.xml

Configured sites:
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/
  platform:/base/
  file:/C:/Programme/Window Tester Pro/WindowTester_v3.7.0.200901230516/E-3.3/eclipse/
  file:/C:/Programme/Window Tester Pro/CodeCoverage_v6.0.0.200901230630/E-3.3/eclipse/
  file:/C:/Programme/Window Tester Pro/Shared_v5.3.2.200901230457/E-3.3/eclipse/

Configured features:
  ID: com.instantiations.assist.eclipse.core, Version: 6.0.0.200901230459
  ID: com.omondo.uml.free, Version: 3.3.0.v20071210
  ID: org.eclipse.emf.mapping, Version: 2.3.1.v200802051830
  ID: org.eclipse.emf.codegen.ecore.ui, Version: 2.3.1.v200802051830
  ID: org.eclipse.emf.validation.ocl, Version: 1.2.0.v200805130238-11-7w311916241349
  ID: org.eclipse.gef.examples.source, Version: 3.3.1.v20070814
  ID: org.eclipse.uml2, Version: 2.1.1.v200708301222
  ID: org.eclipse.emf.doc, Version: 2.3.2.v200802051830
  ID: org.eclipse.sdk, Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
  ID: org.eclipse.emf.ecore, Version: 2.3.2.v200802051830
  ID: org.eclipse.emf.codegen.ui, Version: 2.3.1.v200802051830
  ID: org.eclipse.emf.sdk, Version: 2.3.2.v200802051830
  ID: org.eclipse.emf.ecore.sdo.doc, Version: 2.3.2.v200802051830
  ID: org.eclipse.gef.source, Version: 3.3.2.v20080129
  ID: org.eclipse.mylyn, Version: 2.3.0.v20080225-2200
  ID: org.eclipse.emf.ecore.sdo.editor, Version: 2.3.1.v200802051830
  ID: org.eclipse.emf, Version: 2.3.2.v200802051830
  ID: org.eclipse.emf.source, Version: 2.3.2.v200802051830
  ID: org.eclipse.xsd, Version: 2.3.2.v200802051830
  ID: org.eclipse.emf.edit, Version: 2.3.2.v200802051830
  ID: org.eclipse.wst.xml_userdoc.feature, Version: 2.0.2.v200802150100-4-EGk_kE77Y7QI7EEEQ
  ID: org.eclipse.emf.converter, Version: 2.3.1.v200802051830
  ID: org.eclipse.emf.validation.doc, Version: 1.2.1.v200807161729-2308s733I3E6G4B5F
  ID: org.eclipse.xsd.ecore.converter, Version: 2.3.2.v200802051830
  ID: org.eclipse.mylyn, Version: 2.3.0.v20080225-2200
  ID: org.eclipse.emf.ecore.sdo.edit, Version: 2.3.1.v200802051830
  ID: org.eclipse.cvs.source, Version: 1.0.2.r33x_r20080129-7C79_B_GLJwq3I9ZCD8L_
  ID: org.eclipse.mylyn, Version: 2.3.0.v20080225-2200
  ID: org.eclipse.xsd.mapping.editor, Version: 2.3.0.v200802051830
  ID: org.eclipse.emf.validation.source, Version: 1.2.0.v200805130238-35-9oA55S5L8G6FCT
  ID: org.eclipse.emf.validation, Version: 1.2.0.v200805130238-35-9oA55S5L8G6FCT
  ID: org.eclipse.wst.xml_core.feature, Version: 2.0.2.v200802150100-787BE_4CYQCD-DaQMIfPd
  ID: org.eclipse.emf.common, Version: 2.3.1.v200802051830
  ID: org.eclipse.pde, Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
  ID: org.eclipse.emf.common.ui, Version: 2.3.1.v200802051830
  ID: org.eclipse.emf.ecore.sdo.source, Version: 2.3.2.v200802051830
  ID: org.eclipse.xsd.source, Version: 2.3.2.v200802051830
  ID: org.eclipse.emf.ecore.edit, Version: 2.3.1.v200802051830
  ID: org.eclipse.wst.xml_ui.feature, Version: 2.0.2.v200802150100-7A1ECMCnbcl1bVs9uNm_Zkieb7Qe
  ID: org.eclipse.emf.ecore.sdo, Version: 2.3.1.v200802051830
  ID: org.eclipse.emf.mapping.ecore.editor, Version: 2.3.1.v200802051830
  ID: org.eclipse.xsd.mapping, Version: 2.3.0.v200802051830
  ID: org.eclipse.emf.ecore.editor, Version: 2.3.1.v200802051830
  ID: org.eclipse.platform, Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
  ID: org.eclipse.emf.validation.ocl.source, Version: 1.2.0.v200805130238-11-7w311916241349
  ID: org.eclipse.xsd.sdk, Version: 2.3.2.v200802051830
  ID: org.eclipse.emf.codegen.ecore, Version: 2.3.2.v200802051830
  ID: org.eclipse.xsd.editor, Version: 2.3.0.v200802051830
  ID: org.eclipse.emf.validation.sdk, Version: 1.2.1.v200807161729-579093L7YxTRK7HtUz0Hhaz-JlG9
  ID: org.eclipse.rcp.source, Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
  ID: org.eclipse.pde.source, Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
  ID: org.eclipse.cvs, Version: 1.0.2.r33x_r20080129-7C79_B_GLJwq3I9ZCD8L_
  ID: org.eclipse.gef, Version: 3.3.2.v20080129
  ID: org.eclipse.jdt.source, Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
  ID: org.eclipse.mylyn, Version: 2.3.0.v20080225-2200
  ID: org.eclipse.xsd.edit, Version: 2.3.0.v200802051830
  ID: org.eclipse.rcp, Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
  ID: org.eclipse.wst.common_ui.feature, Version: 2.0.2.v200802150100-7C5EH3E9RvTVnirrspVz0bmP7g8d
  ID: org.eclipse.jdt, Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
  ID: org.eclipse.mylyn, Version: 2.3.0.v20080225-2200
  ID: org.eclipse.emf.edit.ui, Version: 2.3.1.v200802051830
  ID: org.eclipse.emf.ecore.sdo.sdk, Version: 2.3.2.v200802051830
  ID: org.eclipse.emf.mapping.ecore, Version: 2.3.1.v200802051830
  ID: org.eclipse.wst.common_core.feature, Version: 2.0.2.v200802150100-7C78EKOE_EkMNlO6f7cjpz0
  ID: org.eclipse.xsd.doc, Version: 2.3.2.v200802051830
  ID: org.eclipse.emf.mapping.ui, Version: 2.3.1.v200802051830
  ID: org.eclipse.gef.source, Version: 3.3.2.v20080129
  ID: org.eclipse.platform.source, Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
  ID: org.eclipse.emf.codegen, Version: 2.3.1.v200802051830
  ID: org.eclipse.mylyn, Version: 2.3.0.v20080225-2200
  ID: com.windowtester.ide.gef, Version: 3.7.0.200901230516
  ID: com.windowtester.runtime.gef, Version: 3.7.0.200901230516
  ID: com.windowtester.runtime, Version: 3.7.0.200901230516
  ID: com.windowtester.launcher, Version: 3.7.0.200901230516
  ID: com.windowtester.ide, Version: 3.7.0.200901230516
  ID: com.windowtester.swt, Version: 3.7.0.200901230516
  ID: com.instantiations.assist.eclipse.coverage, Version: 6.0.0.200901230630
  ID: com.instantiations.eclipse.shared, Version: 5.3.2.200901230457

Configured plug-ins:
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.assist.eclipse.admin_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.assist.eclipse.core.ant_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.assist.eclipse.core.ui_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.assist.eclipse.core_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.assist.eclipse.fragment.jdt.core_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.assist.eclipse.fragment.jdt_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.assist.eclipse.fragment.swt_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.assist.eclipse.fragment.ui.ide_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.assist.eclipse.fragment.ui.workbench.texteditor_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.assist.eclipse.fragment.ui.workbench_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.assist.eclipse.pattern_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.assist.eclipse.scheduler_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.assist.eclipse_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.eclipse.analysis.dataflow_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.eclipse.analysis.expression_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.eclipse.analysis.flowpath_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.eclipse.ast.editor_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.eclipse.mail.ui_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.eclipse.mail_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.eclipse.model.jsp_6.0.0.200901230459/
  file:/C:/Programme/Window Tester Pro/CodeProCore_v6.0.0.200901230459/E-3.3/eclipse/plugins/com.instantiations.swt.graph_6.0.0.200901230459/



Thanks a lot for helping out.
3061
 
Posts: 42
Joined: Mon Feb 23, 2009 12:43 am

Re: Problem with enterText() and WT.setLocaleToCurrent

Postby keertip » Thu Feb 26, 2009 10:09 am

Are you using a keyboard that has the german keyboard layout - where the / is SHIFT + 7 ?
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: Problem with enterText() and WT.setLocaleToCurrent

Postby 3061 » Mon Mar 02, 2009 2:31 am

(Sorry for the late answer, been out of office on last Friday)

Yes, I do have a german keyboard. Most other special keys work fine though. Here's what I get.

Code: (alphabet)
Code: Select all
ui.enterText("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");

Output in text field:
Code: Select all
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz


Code: (num pad)
Code: Select all
ui.enterText("0123456789/*-+,");

Output in text field:
Code: Select all
01234567897*-*,

"/" turned into "7", "+" turned into "*"

Code: (special chars in the letter rows on the keyboard)
Code: Select all
ui.enterText("<>|,.-;:_+#*'~#üöäÜÖÄ");

Output in text field:
Code: Select all
>>>,.-,:_*'*#*'üöäüöä

The "<", ">" and "|" characters are all on the same key on this keyboard, ">" = SHIFT+"<", "|" = ALT+"<".
When holding SHIFT while typing ",.-", you're supposed to get ";:_". However, I get ",:_". I know semicolon (";") has a dedicated key on the US layout.
" +#*'~# " turns into " *'*#*' ". That's just weird to me...
The Umlauts (ü,ö,ä) don't work in capitals. It's like SHIFT was not pressed.

Code: (numbered row above the alphabetic keys)
Code: Select all
ui.enterText("^1234567890ß´°!\"§$%&/()=?`1²³456{[]}\\");

Output in text field:
Code: Select all
°1234567890ß´^!"3$%&7()0?´123456/89=ß

I entered the same whole row on the keyboard, first without modifiers, then with SHIFT, then with ALT.

It looks a bit like the modifier keys are not used correctly.
3061
 
Posts: 42
Joined: Mon Feb 23, 2009 12:43 am

Re: Problem with enterText() and WT.setLocaleToCurrent

Postby 3061 » Mon Mar 02, 2009 2:36 am

Hmmm... maybe it's a text encoding thing...

What Text format is WindowTester using? My Eclipse Workspace's Text file encoding is set to Default (Cp1252). New text file line delimiter is also set to default.
3061
 
Posts: 42
Joined: Mon Feb 23, 2009 12:43 am

Re: Problem with enterText() and WT.setLocaleToCurrent

Postby 3061 » Mon Mar 02, 2009 3:11 am

Code: Select all
ui.keyClick(WT.SHIFT, '7');
works for entering "/" in the text field. Will do as a workaround for now:

Code: Select all
/**
* Use this if ui.enterText(String s) does not enter some chars correctly
*
* @param s
*/

private void enterPathInTextFieldWorkaround(String s)
{      
   for (int i = 0; i < s.length(); i++)
   {         
      if(s.charAt(i) == '/')
         ui.keyClick(WT.SHIFT, '7');
      else
         ui.keyClick(s.charAt(i));
   }
}
3061
 
Posts: 42
Joined: Mon Feb 23, 2009 12:43 am

Re: Problem with enterText() and WT.setLocaleToCurrent

Postby 3061 » Mon Mar 02, 2009 5:28 am

I'm using WindowTester 3.8 and I think this fix messed up something:
(Compound Keystroke Dispatch Fixes - Certain compound keystrokes (e.g., WT.SHIFT|WT.ARROW_RIGHT) were not being posted properly on some machines. A fix has been introduced to make this dispatch more reliable.)

I generated the maps using the MapGenerator. These are for a standard german keyboard:

de_DE-w32.map
Code: Select all
#Key mappings for locale=de_DE (os=Windows XP, 5.1)
#Mon Mar 02 14:33:15 CET 2009
QUOTEDBL.8=illegal
LESS.8=3c
QUOTEDBL.2=illegal
LESS.2=untyped
QUOTEDBL.1=illegal
LESS.1=3e
QUOTEDBL.0=illegal
LESS.0=3c
CIRCUMFLEX.8=illegal
RIGHT.8=untyped
CIRCUMFLEX.2=illegal
RIGHT.2=untyped
CIRCUMFLEX.1=illegal
RIGHT.1=untyped
CIRCUMFLEX.0=illegal
RIGHT.0=untyped
SEPARATER.8=untyped
BRACERIGHT.8=illegal
SEPARATER.2=untyped
SEPARATER.1=untyped
BRACERIGHT.2=illegal
SEPARATER.0=untyped
DOWN.8=untyped
BRACERIGHT.1=illegal
BRACERIGHT.0=illegal
KP_RIGHT.8=illegal
W.8=77
DOWN.2=untyped
DOWN.1=untyped
NUMPAD8.8=untyped
DOWN.0=untyped
KP_RIGHT.2=illegal
BACK_SLASH.8=illegal
KP_RIGHT.1=illegal
KP_RIGHT.0=illegal
W.2=17
W.1=57
W.0=77
NUMPAD8.2=untyped
S.8=73
NUMPAD8.1=38
BACK_SLASH.2=illegal
NUMPAD8.0=38
BACK_SLASH.1=illegal
NUMPAD4.8=untyped
BACK_SLASH.0=illegal
S.2=13
S.1=53
S.0=73
NUMPAD4.2=untyped
RIGHT_PARENTHESIS.8=illegal
O.8=6f
NUMPAD4.1=34
COMPOSE.8=illegal
NUMPAD4.0=34
NUMPAD0.8=untyped
RIGHT_PARENTHESIS.2=illegal
O.2=f
COMPOSE.2=illegal
RIGHT_PARENTHESIS.1=illegal
PRINTSCREEN.8=system
O.1=4f
COMPOSE.1=illegal
RIGHT_PARENTHESIS.0=illegal
O.0=6f
NUMPAD0.2=untyped
COMPOSE.0=illegal
NUMPAD0.1=30
K.8=6b
NUMPAD0.0=30
STOP.8=illegal
PRINTSCREEN.2=system
PRINTSCREEN.1=system
PRINTSCREEN.0=system
K.2=b
K.1=4b
K.0=6b
STOP.2=illegal
G.8=67
EQUALS.8=illegal
STOP.1=illegal
STOP.0=illegal
G.2=7
EQUALS.2=illegal
G.1=47
EQUALS.1=illegal
EQUALS.0=illegal
G.0=67
C.8=63
C.2=3
C.1=43
C.0=63
BRACELEFT.8=illegal
BRACELEFT.2=illegal
BRACELEFT.1=illegal
BRACELEFT.0=illegal
7.8=37
AT.8=illegal
7.2=untyped
7.1=2f
7.0=37
AT.2=illegal
3.8=33
AT.1=illegal
AT.0=illegal
HOME.8=untyped
3.2=untyped
3.1=a7
3.0=33
AGAIN.8=illegal
HOME.2=untyped
HOME.1=untyped
HOME.0=untyped
AGAIN.2=illegal
AGAIN.1=illegal
AGAIN.0=illegal
ADD.8=2b
ADD.2=untyped
ADD.1=2b
ADD.0=2b
ENTER.8=a
NONCONVERT.8=untyped
ENTER.2=a
ENTER.1=a
ENTER.0=a
NONCONVERT.2=untyped
NONCONVERT.1=untyped
NONCONVERT.0=untyped
ASTERISK.8=illegal
WINDOWS.8=untyped
ASTERISK.2=illegal
WINDOWS.2=untyped
ASTERISK.1=illegal
WINDOWS.1=untyped
PAUSE.8=untyped
ASTERISK.0=illegal
WINDOWS.0=untyped
PAUSE.2=untyped
EXCLAMATION_MARK.8=illegal
PAUSE.1=untyped
PAUSE.0=untyped
EXCLAMATION_MARK.2=illegal
EXCLAMATION_MARK.1=illegal
EXCLAMATION_MARK.0=illegal
PLUS.8=2b
DOLLAR.8=illegal
FIND.8=illegal
PLUS.2=1d
PLUS.1=2a
DOLLAR.2=illegal
PLUS.0=2b
DOLLAR.1=illegal
MINUS.8=2d
DOLLAR.0=illegal
FIND.2=illegal
FIND.1=illegal
FIND.0=illegal
MINUS.2=untyped
MINUS.1=5f
MINUS.0=2d
COPY.8=illegal
Z.8=7a
KP_DOWN.8=illegal
COPY.2=illegal
COPY.1=illegal
Z.2=1a
COPY.0=illegal
Z.1=5a
Z.0=7a
KP_DOWN.2=illegal
V.8=76
KP_DOWN.1=illegal
KP_DOWN.0=illegal
NUMPAD7.8=untyped
V.2=16
V.1=56
V.0=76
NUMPAD7.2=untyped
R.8=72
NUMPAD7.1=37
NUMPAD7.0=37
NUMPAD3.8=untyped
UNDERSCORE.8=illegal
R.2=12
R.1=52
ESCAPE.8=system
R.0=72
NUMPAD3.2=untyped
NUMPAD3.1=33
N.8=6e
NUMPAD3.0=33
UNDERSCORE.2=illegal
UNDERSCORE.1=illegal
SPACE.8=untyped
ESCAPE.2=system
UNDERSCORE.0=illegal
ESCAPE.1=1b
N.2=e
ESCAPE.0=1b
N.1=4e
N.0=6e
J.8=6a
SPACE.2=20
UP.8=untyped
SPACE.1=20
SPACE.0=20
J.2=a
J.1=4a
UP.2=untyped
J.0=6a
UP.1=untyped
F.8=66
UP.0=untyped
F.2=6
F.1=46
F.0=66
B.8=62
B.2=2
B.1=42
B.0=62
CLEAR.8=untyped
CLEAR.2=untyped
6.8=36
CLEAR.1=untyped
CLEAR.0=untyped
AMPERSAND.8=illegal
6.2=untyped
6.1=26
6.0=36
2.8=32
AMPERSAND.2=illegal
AMPERSAND.1=illegal
AMPERSAND.0=illegal
2.2=untyped
2.1=22
2.0=32
GREATER.8=illegal
GREATER.2=illegal
GREATER.1=illegal
GREATER.0=illegal
ACCEPT.8=illegal
ACCEPT.2=illegal
ACCEPT.1=illegal
ACCEPT.0=illegal
END.8=untyped
SEMICOLON.8=illegal
END.2=untyped
SEMICOLON.2=illegal
END.1=untyped
SEMICOLON.1=illegal
PAGE_UP.8=untyped
END.0=untyped
SEMICOLON.0=illegal
PAGE_UP.2=untyped
PAGE_UP.1=untyped
PAGE_UP.0=untyped
PROPS.8=illegal
PROPS.2=illegal
PROPS.1=illegal
PROPS.0=illegal
PASTE.8=illegal
BACK_QUOTE.8=illegal
PASTE.2=illegal
Y.8=79
PASTE.1=illegal
BACK_QUOTE.2=illegal
EURO_SIGN.8=illegal
PASTE.0=illegal
BACK_QUOTE.1=illegal
BACK_QUOTE.0=illegal
Y.2=19
EURO_SIGN.2=illegal
Y.1=59
EURO_SIGN.1=illegal
Y.0=79
EURO_SIGN.0=illegal
U.8=75
NUMPAD6.8=untyped
CANCEL.8=3
U.2=15
U.1=55
U.0=75
NUMPAD6.2=untyped
CANCEL.2=3
Q.8=71
NUMPAD6.1=36
CANCEL.1=3
NUMPAD6.0=36
CANCEL.0=3
NUMPAD2.8=untyped
Q.2=11
Q.1=51
Q.0=71
NUMPAD2.2=untyped
NUMPAD2.1=32
M.8=6d
NUMPAD2.0=32
M.2=a
M.1=4d
M.0=6d
I.8=69
I.2=9
I.1=49
I.0=69
E.8=65
E.2=5
E.1=45
LEFT_PARENTHESIS.8=illegal
E.0=65
A.8=61
COMMA.8=2c
LEFT_PARENTHESIS.2=illegal
SEPARATOR.8=untyped
LEFT_PARENTHESIS.1=illegal
A.2=1
A.1=41
LEFT_PARENTHESIS.0=illegal
COMMA.2=untyped
A.0=61
KP_LEFT.8=illegal
COMMA.1=3b
COMMA.0=2c
SEPARATOR.2=untyped
SEPARATOR.1=untyped
SEPARATOR.0=untyped
KP_LEFT.2=illegal
KP_LEFT.1=illegal
KP_LEFT.0=illegal
9.8=39
DIVIDE.8=2f
9.2=untyped
9.1=29
9.0=39
5.8=35
DIVIDE.2=untyped
DIVIDE.1=2f
DIVIDE.0=2f
5.2=untyped
5.1=25
5.0=35
CONTEXT_MENU.8=untyped
1.8=31
CONTEXT_MENU.2=untyped
1.2=untyped
CONTEXT_MENU.1=untyped
1.1=21
CONTEXT_MENU.0=untyped
1.0=31
KP_UP.8=illegal
LEFT.8=untyped
KP_UP.2=illegal
KP_UP.1=illegal
LEFT.2=untyped
SLASH.8=illegal
KP_UP.0=illegal
LEFT.1=untyped
LEFT.0=untyped
SLASH.2=illegal
SLASH.1=illegal
SLASH.0=illegal
CUT.8=illegal
BACK_SPACE.8=8
INVERTED_EXCLAMATION_MARK.8=illegal
CUT.2=illegal
BACK_SPACE.2=7f
INVERTED_EXCLAMATION_MARK.2=illegal
CUT.1=illegal
BACK_SPACE.1=8
INVERTED_EXCLAMATION_MARK.1=illegal
CUT.0=illegal
BACK_SPACE.0=8
INVERTED_EXCLAMATION_MARK.0=illegal
COLON.8=illegal
CLOSE_BRACKET.8=illegal
UNDO.8=illegal
COLON.2=illegal
COLON.1=illegal
COLON.0=illegal
CLOSE_BRACKET.2=illegal
UNDO.2=illegal
CLOSE_BRACKET.1=illegal
UNDO.1=illegal
CLOSE_BRACKET.0=illegal
UNDO.0=illegal
MODECHANGE.8=illegal
MODECHANGE.2=illegal
MODECHANGE.1=illegal
MODECHANGE.0=illegal
FINAL.8=illegal
X.8=78
NUMPAD9.8=untyped
FINAL.2=illegal
X.2=18
FINAL.1=illegal
X.1=58
FINAL.0=illegal
X.0=78
NUMPAD9.2=untyped
T.8=74
NUMPAD9.1=39
NUMPAD9.0=39
NUMPAD5.8=untyped
T.2=14
T.1=54
T.0=74
NUMPAD5.2=untyped
DECIMAL.8=2c
P.8=70
NUMPAD5.1=35
NUMPAD5.0=35
SUBTRACT.8=2d
NUMPAD1.8=untyped
DECIMAL.2=untyped
P.2=10
DECIMAL.1=2c
P.1=50
DECIMAL.0=2c
SUBTRACT.2=untyped
PAGE_DOWN.8=untyped
P.0=70
NUMPAD1.2=untyped
SUBTRACT.1=2d
NUMPAD1.1=31
L.8=6c
SUBTRACT.0=2d
NUMPAD1.0=31
OPEN_BRACKET.8=illegal
PAGE_DOWN.2=untyped
PAGE_DOWN.1=untyped
L.2=c
PAGE_DOWN.0=untyped
L.1=4c
OPEN_BRACKET.2=illegal
L.0=6c
OPEN_BRACKET.1=illegal
H.8=68
OPEN_BRACKET.0=illegal
MULTIPLY.8=2a
H.2=8
H.1=48
H.0=68
CONVERT.8=untyped
D.8=64
MULTIPLY.2=untyped
MULTIPLY.1=2a
MULTIPLY.0=2a
CONVERT.2=untyped
D.2=4
CONVERT.1=untyped
D.1=44
QUOTE.8=illegal
CONVERT.0=untyped
D.0=64
INSERT.8=untyped
QUOTE.2=illegal
QUOTE.1=illegal
INSERT.2=untyped
QUOTE.0=illegal
INSERT.1=untyped
INSERT.0=untyped
NUMBER_SIGN.8=23
NUMBER_SIGN.2=1c
NUMBER_SIGN.1=27
NUMBER_SIGN.0=23
8.8=38
TAB.8=system
8.2=untyped
8.1=28
8.0=38
4.8=34
TAB.2=system
DELETE.8=7f
TAB.1=9
TAB.0=9
HELP.8=untyped
4.2=untyped
4.1=24
DELETE.2=7f
4.0=34
DELETE.1=7f
0.8=30
DELETE.0=7f
HELP.2=untyped
HELP.1=untyped
HELP.0=untyped
0.2=untyped
0.1=3d
0.0=30
BEGIN.8=illegal
BEGIN.2=illegal
BEGIN.1=illegal
BEGIN.0=illegal
PERIOD.8=2e
PERIOD.2=untyped
PERIOD.1=3a
PERIOD.0=2e



de_DE.map
Code: Select all
#Key mappings for locale=de_DE
#Mon Mar 02 14:33:15 CET 2009
QUOTEDBL.8=illegal
LESS.8=3c
QUOTEDBL.2=illegal
LESS.2=untyped
QUOTEDBL.1=illegal
LESS.1=3e
QUOTEDBL.0=illegal
LESS.0=3c
CIRCUMFLEX.8=illegal
RIGHT.8=untyped
CIRCUMFLEX.2=illegal
RIGHT.2=untyped
CIRCUMFLEX.1=illegal
RIGHT.1=untyped
CIRCUMFLEX.0=illegal
RIGHT.0=untyped
SEPARATER.8=untyped
BRACERIGHT.8=illegal
SEPARATER.2=untyped
SEPARATER.1=untyped
BRACERIGHT.2=illegal
SEPARATER.0=untyped
DOWN.8=untyped
BRACERIGHT.1=illegal
BRACERIGHT.0=illegal
KP_RIGHT.8=illegal
W.8=77
DOWN.2=untyped
DOWN.1=untyped
NUMPAD8.8=untyped
DOWN.0=untyped
KP_RIGHT.2=illegal
BACK_SLASH.8=illegal
KP_RIGHT.1=illegal
KP_RIGHT.0=illegal
W.2=17
W.1=57
W.0=77
NUMPAD8.2=untyped
S.8=73
NUMPAD8.1=38
BACK_SLASH.2=illegal
NUMPAD8.0=38
BACK_SLASH.1=illegal
NUMPAD4.8=untyped
BACK_SLASH.0=illegal
S.2=13
S.1=53
S.0=73
NUMPAD4.2=untyped
RIGHT_PARENTHESIS.8=illegal
O.8=6f
NUMPAD4.1=34
COMPOSE.8=illegal
NUMPAD4.0=34
NUMPAD0.8=untyped
RIGHT_PARENTHESIS.2=illegal
O.2=f
COMPOSE.2=illegal
RIGHT_PARENTHESIS.1=illegal
PRINTSCREEN.8=system
O.1=4f
COMPOSE.1=illegal
RIGHT_PARENTHESIS.0=illegal
O.0=6f
NUMPAD0.2=untyped
COMPOSE.0=illegal
NUMPAD0.1=30
K.8=6b
NUMPAD0.0=30
STOP.8=illegal
PRINTSCREEN.2=system
PRINTSCREEN.1=system
PRINTSCREEN.0=system
K.2=b
K.1=4b
K.0=6b
STOP.2=illegal
G.8=67
EQUALS.8=illegal
STOP.1=illegal
STOP.0=illegal
G.2=7
EQUALS.2=illegal
G.1=47
EQUALS.1=illegal
EQUALS.0=illegal
G.0=67
C.8=63
C.2=3
C.1=43
C.0=63
BRACELEFT.8=illegal
BRACELEFT.2=illegal
BRACELEFT.1=illegal
BRACELEFT.0=illegal
7.8=37
AT.8=illegal
7.2=untyped
7.1=2f
7.0=37
AT.2=illegal
3.8=33
AT.1=illegal
AT.0=illegal
HOME.8=untyped
3.2=untyped
3.1=a7
3.0=33
AGAIN.8=illegal
HOME.2=untyped
HOME.1=untyped
HOME.0=untyped
AGAIN.2=illegal
AGAIN.1=illegal
AGAIN.0=illegal
ADD.8=2b
ADD.2=untyped
ADD.1=2b
ADD.0=2b
ENTER.8=a
NONCONVERT.8=untyped
ENTER.2=a
ENTER.1=a
ENTER.0=a
NONCONVERT.2=untyped
NONCONVERT.1=untyped
NONCONVERT.0=untyped
ASTERISK.8=illegal
WINDOWS.8=untyped
ASTERISK.2=illegal
WINDOWS.2=untyped
ASTERISK.1=illegal
WINDOWS.1=untyped
PAUSE.8=untyped
ASTERISK.0=illegal
WINDOWS.0=untyped
PAUSE.2=untyped
EXCLAMATION_MARK.8=illegal
PAUSE.1=untyped
PAUSE.0=untyped
EXCLAMATION_MARK.2=illegal
EXCLAMATION_MARK.1=illegal
EXCLAMATION_MARK.0=illegal
PLUS.8=2b
DOLLAR.8=illegal
FIND.8=illegal
PLUS.2=1d
PLUS.1=2a
DOLLAR.2=illegal
PLUS.0=2b
DOLLAR.1=illegal
MINUS.8=2d
DOLLAR.0=illegal
FIND.2=illegal
FIND.1=illegal
FIND.0=illegal
MINUS.2=untyped
MINUS.1=5f
MINUS.0=2d
COPY.8=illegal
Z.8=7a
KP_DOWN.8=illegal
COPY.2=illegal
COPY.1=illegal
Z.2=1a
COPY.0=illegal
Z.1=5a
Z.0=7a
KP_DOWN.2=illegal
V.8=76
KP_DOWN.1=illegal
KP_DOWN.0=illegal
NUMPAD7.8=untyped
V.2=16
V.1=56
V.0=76
NUMPAD7.2=untyped
R.8=72
NUMPAD7.1=37
NUMPAD7.0=37
NUMPAD3.8=untyped
UNDERSCORE.8=illegal
R.2=12
R.1=52
ESCAPE.8=system
R.0=72
NUMPAD3.2=untyped
NUMPAD3.1=33
N.8=6e
NUMPAD3.0=33
UNDERSCORE.2=illegal
UNDERSCORE.1=illegal
SPACE.8=untyped
ESCAPE.2=system
UNDERSCORE.0=illegal
ESCAPE.1=1b
N.2=e
ESCAPE.0=1b
N.1=4e
N.0=6e
J.8=6a
SPACE.2=20
UP.8=untyped
SPACE.1=20
SPACE.0=20
J.2=a
J.1=4a
UP.2=untyped
J.0=6a
UP.1=untyped
F.8=66
UP.0=untyped
F.2=6
F.1=46
F.0=66
B.8=62
B.2=2
B.1=42
B.0=62
CLEAR.8=untyped
CLEAR.2=untyped
6.8=36
CLEAR.1=untyped
CLEAR.0=untyped
AMPERSAND.8=illegal
6.2=untyped
6.1=26
6.0=36
2.8=32
AMPERSAND.2=illegal
AMPERSAND.1=illegal
AMPERSAND.0=illegal
2.2=untyped
2.1=22
2.0=32
GREATER.8=illegal
GREATER.2=illegal
GREATER.1=illegal
GREATER.0=illegal
ACCEPT.8=illegal
ACCEPT.2=illegal
ACCEPT.1=illegal
ACCEPT.0=illegal
END.8=untyped
SEMICOLON.8=illegal
END.2=untyped
SEMICOLON.2=illegal
END.1=untyped
SEMICOLON.1=illegal
PAGE_UP.8=untyped
END.0=untyped
SEMICOLON.0=illegal
PAGE_UP.2=untyped
PAGE_UP.1=untyped
PAGE_UP.0=untyped
PROPS.8=illegal
PROPS.2=illegal
PROPS.1=illegal
PROPS.0=illegal
PASTE.8=illegal
BACK_QUOTE.8=illegal
PASTE.2=illegal
Y.8=79
PASTE.1=illegal
BACK_QUOTE.2=illegal
EURO_SIGN.8=illegal
PASTE.0=illegal
BACK_QUOTE.1=illegal
BACK_QUOTE.0=illegal
Y.2=19
EURO_SIGN.2=illegal
Y.1=59
EURO_SIGN.1=illegal
Y.0=79
EURO_SIGN.0=illegal
U.8=75
NUMPAD6.8=untyped
CANCEL.8=3
U.2=15
U.1=55
U.0=75
NUMPAD6.2=untyped
CANCEL.2=3
Q.8=71
NUMPAD6.1=36
CANCEL.1=3
NUMPAD6.0=36
CANCEL.0=3
NUMPAD2.8=untyped
Q.2=11
Q.1=51
Q.0=71
NUMPAD2.2=untyped
NUMPAD2.1=32
M.8=6d
NUMPAD2.0=32
M.2=a
M.1=4d
M.0=6d
I.8=69
I.2=9
I.1=49
I.0=69
E.8=65
E.2=5
E.1=45
LEFT_PARENTHESIS.8=illegal
E.0=65
A.8=61
COMMA.8=2c
LEFT_PARENTHESIS.2=illegal
SEPARATOR.8=untyped
LEFT_PARENTHESIS.1=illegal
A.2=1
A.1=41
LEFT_PARENTHESIS.0=illegal
COMMA.2=untyped
A.0=61
KP_LEFT.8=illegal
COMMA.1=3b
COMMA.0=2c
SEPARATOR.2=untyped
SEPARATOR.1=untyped
SEPARATOR.0=untyped
KP_LEFT.2=illegal
KP_LEFT.1=illegal
KP_LEFT.0=illegal
9.8=39
DIVIDE.8=2f
9.2=untyped
9.1=29
9.0=39
5.8=35
DIVIDE.2=untyped
DIVIDE.1=2f
DIVIDE.0=2f
5.2=untyped
5.1=25
5.0=35
CONTEXT_MENU.8=untyped
1.8=31
CONTEXT_MENU.2=untyped
1.2=untyped
CONTEXT_MENU.1=untyped
1.1=21
CONTEXT_MENU.0=untyped
1.0=31
KP_UP.8=illegal
LEFT.8=untyped
KP_UP.2=illegal
KP_UP.1=illegal
LEFT.2=untyped
SLASH.8=illegal
KP_UP.0=illegal
LEFT.1=untyped
LEFT.0=untyped
SLASH.2=illegal
SLASH.1=illegal
SLASH.0=illegal
CUT.8=illegal
BACK_SPACE.8=8
INVERTED_EXCLAMATION_MARK.8=illegal
CUT.2=illegal
BACK_SPACE.2=7f
INVERTED_EXCLAMATION_MARK.2=illegal
CUT.1=illegal
BACK_SPACE.1=8
INVERTED_EXCLAMATION_MARK.1=illegal
CUT.0=illegal
BACK_SPACE.0=8
INVERTED_EXCLAMATION_MARK.0=illegal
COLON.8=illegal
CLOSE_BRACKET.8=illegal
UNDO.8=illegal
COLON.2=illegal
COLON.1=illegal
COLON.0=illegal
CLOSE_BRACKET.2=illegal
UNDO.2=illegal
CLOSE_BRACKET.1=illegal
UNDO.1=illegal
CLOSE_BRACKET.0=illegal
UNDO.0=illegal
MODECHANGE.8=illegal
MODECHANGE.2=illegal
MODECHANGE.1=illegal
MODECHANGE.0=illegal
FINAL.8=illegal
X.8=78
NUMPAD9.8=untyped
FINAL.2=illegal
X.2=18
FINAL.1=illegal
X.1=58
FINAL.0=illegal
X.0=78
NUMPAD9.2=untyped
T.8=74
NUMPAD9.1=39
NUMPAD9.0=39
NUMPAD5.8=untyped
T.2=14
T.1=54
T.0=74
NUMPAD5.2=untyped
DECIMAL.8=2c
P.8=70
NUMPAD5.1=35
NUMPAD5.0=35
SUBTRACT.8=2d
NUMPAD1.8=untyped
DECIMAL.2=untyped
P.2=10
DECIMAL.1=2c
P.1=50
DECIMAL.0=2c
SUBTRACT.2=untyped
PAGE_DOWN.8=untyped
P.0=70
NUMPAD1.2=untyped
SUBTRACT.1=2d
NUMPAD1.1=31
L.8=6c
SUBTRACT.0=2d
NUMPAD1.0=31
OPEN_BRACKET.8=illegal
PAGE_DOWN.2=untyped
PAGE_DOWN.1=untyped
L.2=c
PAGE_DOWN.0=untyped
L.1=4c
OPEN_BRACKET.2=illegal
L.0=6c
OPEN_BRACKET.1=illegal
H.8=68
OPEN_BRACKET.0=illegal
MULTIPLY.8=2a
H.2=8
H.1=48
H.0=68
CONVERT.8=untyped
D.8=64
MULTIPLY.2=untyped
MULTIPLY.1=2a
MULTIPLY.0=2a
CONVERT.2=untyped
D.2=4
CONVERT.1=untyped
D.1=44
QUOTE.8=illegal
CONVERT.0=untyped
D.0=64
INSERT.8=untyped
QUOTE.2=illegal
QUOTE.1=illegal
INSERT.2=untyped
QUOTE.0=illegal
INSERT.1=untyped
INSERT.0=untyped
NUMBER_SIGN.8=23
NUMBER_SIGN.2=1c
NUMBER_SIGN.1=27
NUMBER_SIGN.0=23
8.8=38
TAB.8=system
8.2=untyped
8.1=28
8.0=38
4.8=34
TAB.2=system
DELETE.8=7f
TAB.1=9
TAB.0=9
HELP.8=untyped
4.2=untyped
4.1=24
DELETE.2=7f
4.0=34
DELETE.1=7f
0.8=30
DELETE.0=7f
HELP.2=untyped
HELP.1=untyped
HELP.0=untyped
0.2=untyped
0.1=3d
0.0=30
BEGIN.8=illegal
BEGIN.2=illegal
BEGIN.1=illegal
BEGIN.0=illegal
PERIOD.8=2e
PERIOD.2=untyped
PERIOD.1=3a
PERIOD.0=2e
3061
 
Posts: 42
Joined: Mon Feb 23, 2009 12:43 am

Re: Problem with enterText() and WT.setLocaleToCurrent

Postby Phil Quitslund » Mon Mar 02, 2009 1:52 pm

Thanks for this and for sending a bug report. We'll follow up from our issue tracking system.
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Re: Problem with enterText() and WT.setLocaleToCurrent

Postby 3061 » Thu Mar 05, 2009 7:34 am

Here's a workaround method I did with help from Phil Quitslund:
Code: Select all
         /**
    * Use this if ui.enterText(String s) does not enter some chars correctly.
    *
    * @param s
    *            The text to be entered
    * @param language
    *            examples: "en" for English, "de" for German
    * @param country
    *            examples: "US" for USA, "DE" for Germany
    */
   private void enterTextWithTempLocale(String s, String language, String country)
   {
      Locale defaultLocale = Locale.getDefault(); // remember previous Locale
      System.out.println("Default Locale is " + defaultLocale);

      Locale.setDefault(new Locale(language, country));
      System.out.println("Setting Locale to \"" + language + " " + country + "\"...");

      WT.setLocaleToCurrent();

      // Locale.setDefault(new Locale("de","DE"));
      ui.enterText(s); // enter the text in the ui

      Locale.setDefault(defaultLocale); // reset to previous locale
                WT.setLocaleToCurrent();
      System.out.println("Locale set back to " + defaultLocale + ".");
   }
3061
 
Posts: 42
Joined: Mon Feb 23, 2009 12:43 am

Re: Problem with enterText() and WT.setLocaleToCurrent

Postby Phil Quitslund » Fri Mar 06, 2009 10:15 am

Nice!

Thanks for posting this and let's give credit where credit is due --- Keerti is actually the one who did the heavy lifting... Thanks Keerti!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest