Return Promise in "executeScript"

I’ve just starting using this awesome tool. There is one problem I’m facing in “executeScript”. I want to return a promise response and assign it to a variable but the script just executes and does not wait for the promise return. Is there any way I can do that? Waiting for your response.
Thank you

Interesting! Would execute async script help?

I want to run it in Browser extension. I can’t find this command in the extension

Yes, this command does not exist yet in UI.Vision. But we can add it with the next update. It is a good suggestion :smiley:

Thanks. I’ll be waiting for the update

Feature added with with V5.5.7 - thanks for the suggestion!

New commands:

Note that this command is not in the command dropdown, you have to add it manually. Reason is, that it is a rather specialized command and should not be confused with the regular executescript.