Is there any way to open a browser and set cookies only once in a lifetime of checking? The idea behind this is that I want to open a browser and set the cookies only once and not repeat that on every bot is that possible to achieve in OB2 with puppeteer?
And I’m also facing one issue
using puppeteer when I try to set a cookie it says 1 cookie is set but it doesn’t appear on the browser
and it’s not showing on the page
Am I doing something wrong here or is there is a bug in puppeteer block @Ruri
Yes u can put the set cookie block inside an IF condition which checks whether cookies are already set or not, if they are not then execute the block otherwise skip
This feature is currently being worked on. You will be able to write a “startup” script that will only be executed once at the start of the job, where you will set the cookies to use for the rest of the run. Expect it to be out soon.
What are the possible statuses?
If its success or custom then you can just make a manual loop using if and jump statements and juml the job to the start after it ends.
If is for running it a specific amount of times, u can make a counter and use if counter < number then jump to start