question

pwalton avatar image
pwalton asked

Chrome v54 can't send JavaScript Console commands while remote debugging in Web App Tester

It appears as though we can no longer send JavaScript console commands while remote debugging a web app in Web App Tester. We were initially concerned it was our app, but we were also unable to send JavaScript console commands when pointing the tester at other websites (google, for example).

I did a little digging, and it looks like in the remote debugger, [ip_address:9222]/devtools/console_module.js, the check for the enter key is defined as

function isEnterKey(event) { return event.keyCode !== 229 && event.keyIdentifier === "Enter"; }

Chrome removed the keyIdentifier property as of Chrome v54: KeyboardEvent.keyIdentifier

When I redefined the function to check event.key instead, it started working, sending console commands. e.g. -

isEnterKey = function(event) { return event.keyCode !== 229 && event.key === "Enter"; }

debuggingweb apps
1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks pwalton, I have forwarded your comments to the web team, and will reply when I have any updates. Thanks!

1 Like 1 ·

1 Answer

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

We recently released a new version of Web App Tester. Could you please confirm if this is still an issue? Thanks!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.