by Zoho

Go to console

SmartBrowz FAQ

Browse through questions related to working with the various components and features
of the Catalyst SmartBrowz service, such as Headless, Browser Logic, PDF & Screenshot, and Templates.



How do I connect to headless browser from other Catalyst function types?
You will need to use the CDP endpoint from the console and use it to initialize the browser instance in order to connect to headless browser from a function.

What is the maximum timeout of the browser instance created using CDP endpoint?
2 minutes . Browser can be alive upto 2 minutes. However in development, the functions will have a max timeout of upto 30 secs. Your browser instance will be killed if your function has faced a timeout.

How do I configure the browser headless memory?
You can modify the memory from console. Upto 1024 MB can be configured.

Browser Logic

What is the use of Browser Logic function over the other function types?
You will have to create the browser instance using its CDP endpoint from other type of functions to connect to headless. Whereas, the browser object is supplied to you directly in the browserlogic functions. You can directly use that. Browser will not have a timeout in a browserlogic function in local debugging. However, browser logic function will have a max timeout of 30 sec in development.

How do I test a Browser Logic function in local?
You can test Browser Logic function using catalyst serve command in CLI. A function URL will gets generated and served in localhost to test

PDF & Screenshot

How do I create a PDF from a HTML page with placeholder values supplied dynamically?
You can create a template from the Catalyst console. You have to design your template by using HTML, CSS, and JS. You can then pass the placeholders as a JSON and supply the data to the Smartbrowz Java, Node.js, or Python SDK in order to generate PDF from the HTML templates.

How do I take a screenshot of a publicly accessible webpage?
You can use the smartbrowz sdk to take a screenshot of a publicly accessible webpage by passing the Webpage URL to the SDK method.

Last Updated 2023-09-03 01:06:41 +0530 +0530