2023-02-01, 18:02:51
(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. Â
But I guess that you won't need it, at least for now.
Hope this helps,
Wil