Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[vbscript] CreateObject() servers name
#9
Hi Bernard,

Are you using the latest AntView version (1.1.236) ?

I'm asking as I see this code:
Code:
EdgeWebBrowser.CreateWebView For i = 1 to 60 Step 1   if EdgeWebBrowser.WebViewCreated Then Exit For   wscript.sleep 1000 Next
and also:
Code:
EdgeWebBrowser.Navigate( ct_cUrl ) For i = 1 to 60 Step 1   If pu_nEvent <> 0 Then Exit For   wscript.sleep 1000 Next

You should be able to use CreateWebViewSync and NavigateSync for those.

Document.RequestCurrentHtml also has a synchronous version: Document.RequestCurrentHtmlSync

I'm surprised to see that the sleep works in wscript as it doesn't in most other languages.

Re. Cookies.

At the moment the only way to access cookies is by injecting Javascript in the page and read them that way.
However I will look into that asap as WebView2 does expose functionality for managing cookies and we're still missing that in AntView.

--
Wil
Reply


Messages In This Thread
RE: [vbscript] CreateObject() servers name - by wila - 2023-01-16, 13:38:04

Forum Jump:


Users browsing this thread: 1 Guest(s)