Link to home
Start Free TrialLog in
Avatar of fmichail
fmichailFlag for Canada

asked on

how to return a value from ExecuteScriptAsync of webview2 control

Hi experts, 

I want to read the list of options of <select> element in a web page using ExecuteScriptAsync method of webview2 control. This needs a javascript which is very challenging for me. So I want to have a statement like the following in

dim myOptions() as string


I know the select element ID and can be hardcoded in the javascript

what could the javascript be, and am I calling the ExecuteScriptAsync properly for a return value?

Sorry it may be a basic question, but I am not familiar with Javascript 

Avatar of louisfr

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial