I am using javascript for selenium selenium-webdriver.
My code is:
return_value = driver.execute_script(script)
But I don’t know, how to return value from my script.
const token = await grecaptcha.enterprise.execute('myKey',{})
return token
Illegal return statement
Thank you for any help.