Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[vbscript] CreateObject() servers name
#14
(2023-02-01, 18:02:51)wila Wrote:
(2023-01-16, 13:00:20)Bernard Mouille Wrote: Antother question :
- It is an example to accept the cookies ?

Hello Bernard,

The cookiemanager code was just completed and I am currently testing that.
Then I looked back at your question above and I now realize that it is not what you asked! (Oh dear)

Accepting cookies on a website is not something that has a single solution as every website can use their own cookie banner.
Looking at the URL you supplied above, the cookie banner that pops up can be clicked on via javascript.
The following snippet did it for me.
Code:
var button = document.getElementsByClassName("cmplz-accept")
button[0].click();

So basically identify the html object you want to click, followed by sending a click.

You can insert any javascript you want in a page rendered by AntView.
This is showcased in the examples that come with AntView.
For example in Visual Basic see the frmExchangeRatesDemo.frm demo where the RunAnonymousFunction method is showcased.

Another way would be by using ExecuteScript.

OTOH if you want to access and manipulate cookies on any page then I can get you that now too. Tongue 
But I guess that you won't need it, at least for now.

Hope this helps,
Wil

Hello Wil,
Many thanks for the sample.
I look all this.
Regards,
Bernard.
Reply


Messages In This Thread
RE: [vbscript] CreateObject() servers name - by Bernard Mouille - 2023-02-01, 19:10:55

Forum Jump:


Users browsing this thread: 2 Guest(s)