Page 1 of 1
Read showToastMessage functions messages in TWebView??
Posted: Tue Aug 02, 2022 9:20 pm
by Horizon
Hi Antonio,
Is it possible to read messages from showToastMessage function?
Code: Select all | Expand
showToastMessage("Warning","There is a something error (ERR10001) !","error");
Thanks.
Re: Read showToastMessage functions messages in TWebView??
Posted: Wed Aug 03, 2022 4:21 am
by Antonio Linares
Dear Hakan,
If showToastMessage() is a javascript function available from your HTML, then you should be able to execute it using:
oWebView:Eval( 'showToastMessage("Warning","There is a something error (ERR10001) !","error")' )
Re: Read showToastMessage functions messages in TWebView??
Posted: Wed Aug 03, 2022 5:55 am
by Horizon
Antonio Linares wrote:Dear Hakan,
If showToastMessage() is a javascript function available from your HTML, then you should be able to execute it using:
oWebView:Eval( 'showToastMessage("Warning","There is a something error (ERR10001) !","error")' )
Hi Antonio,
Yes, it is. it can run in console mode. My goal is reading "There is a something error (ERR10001)!" text from message.
Re: Read showToastMessage functions messages in TWebView??
Posted: Wed Aug 03, 2022 7:36 am
by Antonio Linares
You can use javascript alert() or console.log()