Windows 7 (Locale and Language = ja_JP) with JIS-Laout keyboard
- start Katalon Studio
- File> New Sample Project > Sample WebUI Testing project and create the project in some directory
- call up “Spy Web”
- set URL: http://demoaut.katalaon.com and Start with Firefox
- Browser window opens and navigates to the CURA Healthcare Service page opened.
- Hoover on mouse on “Make Appoint” button. The button is highlighted with RED border.
- I press ALT + Backquote on my JIS-Layout Keyboard. No reaction. No highlight with GREEN border.
When I click the “Make Appoint” button, the button is highlighted with GREEN border and an object is captured by Object Spy.
No GREEN highlight, no object captured
People living in US would be using Windows PC of which Locale and Language settings=en_US with US-Layout Keyboard.
On the other hand I live outside US, I am using a Windonws PC of which Locale and Language settings=ja_JP with JIS-Layout Keyboard.
Your attention please! The Backstroke ( ` ) is located on different place on those two Keyboards.
The Spy Web would certainly be expecting the KeyCode emitted by Alt+Backquotes on US-Layout keyboard.
I thought that the KeyCode emitted by Alt+Backquote on JIS-Layout keyboard with Locale=ja_JP could differ from the one expected by Spy Web.
I wrote a simple Java Program to see what KeyCode is emitted by ALT+Backquote keystroke in 2 cases: Locale and Language=US and JP.
Using this program, I checked the KeyCode value of ALT+Backquote in 2 cases.
|Keyboard |Keystroke |KeyCode emitted| |US-Layout Keyboard |ALT+Backquote(`) |18,192 | |JIS-Layout Keyboard |ALT+SHIFT+Backquote(`) |18,16,512 |
As you can see, the KeyCode emitted by ALT+Backquote from 2 types of keyboard differs. If Spy Web expects “18,192”, then “18,16,512” from JIS-Layout keyboard would be ignored. This must be the root cause of my problem.
ALT+Backquote is dependent on the Keybord type. Spy Web should add an reliable alternative keystroke which emits KeyCode common to all types of Keyboards. I would suggest ALT+Comma(,)
|Keyboard |Keystroke |KeyCode emitted| |US |ALT+Comma(,) |18,44 | |JP |ALT+Comma(,) |18,44 |
The KeyCode emitted by keystroke of ALT+Backquote depends on the Language and Keyboard setting of Windows OS. Spy Web’s Alt+Backstroke would work for those who use US-Layout Keyboard, but it would not work for those in Japan using JIS-Layout Keyboard.