Is there a way to extract the message from a JavaScript dialog in Chrome?

Posted by Samuel on Stack Overflow See other posts from Stack Overflow or by Samuel
Published on 2010-03-31T20:37:13Z Indexed on 2010/03/31 20:43 UTC
Read the original article Hit count: 199

I’ve been working on an extension for automating tests in Chrome, and I came across an obscure issue with JavaScript dialogs. The message shown in the dialog can’t be readily retrieved/copied. I’ve used the GetWindowText and InternalGetWindowText functions, but they only return the title of the dialog and the text from the buttons, not the actual message itself.

I even looked at programs that extract text from forms, but no luck. So does anyone know of a way to retrieve the text from these JavaScript dialogs in Chrome?

© Stack Overflow or respective owner

Related posts about text-extraction

Related posts about JavaScript