Thanks again for posting it, but your example is for Selenium Web Driver not with the Selenium IDE
As we wrote on executeAsyncScript:
…While asynchronous code in Javascript in general has plenty good uses, we have yet to find any good use case within any Selenium IDE. The executeScript command is an essential Selenium IDE command. But the async version adds no additional benefits in our opinion. If you use execute Async Script in a Selenium IDE project, please let us know how you use it. Maybe we overlook something here. (We offer a free UI.Vision RPA PRO license for the first real life use case report).
I have an use case real life… I need to access a website and then, execute a script using noBackend arquitecture do get data from the site… the function is a promise, send request to server and back to client using callback and data as parameter. I can’t do this if ui.vision! I need to solve this problem to show a solution problem to my customer. I’m trying to use executeAsyncScript, but never work, returns csPostMessage timeout 5000 ms error.
Or, if this is on an internal website, can you test if the “execute Async Script” in the original Selenium IDE works for you? If yes, that would mean that our Selenium IDE++ implementation has a bug, and we would fix it ASAP.