kameleo-io / local-api-client-typescript

Official JavaScript/TypeScript library for interacting with Kameleo Client
https://kameleo.io/learn-more/automation
MIT License
45 stars 2 forks source link

Last tab still opens on profile start #6

Closed MBailey01 closed 4 months ago

MBailey01 commented 4 months ago

Hello,

I had a question about starting profiles, whether there is a way to open a new tab instead of loading up the previously saved session? Furthermore, if there is a way to do it, can be be done with in a manner where cookies persist across sessions?

Thank you!

JonathanR25 commented 4 months ago

To prevent your browser from opening tabs from previous sessions, you can configure the profile settings to always start with a specific page. This can be done in a couple of simple steps:

1.Access Profile Settings:

2.Navigate to Advanced Settings:

3.Set the Start Page:

Furthermore, you can also make these changes via the CLI by using the following code:

For JavaScript:

const createProfileRequest = BuilderForCreateProfile 
   .setStartPage('about:newtab') \

This information is also available on one of the public articles that Kameleo has -> https://help.kameleo.io/hc/en-us/articles/14190549346588-Reopen-profiles-with-empty-page