Description
Currently the screenshot function will scroll the page by 200 units until it reaches the end of the page and then it takes a screenshot of that page. But for webpages with infinite scroll (like Google images page), it would give API timeout error. Hence a reasonable limit should be added on the number of times page is scrolled and also user should be able to specify that as a parameter in the post request. If no parameter is specified then a default value could be used.
Relevant Files
Description
Currently the screenshot function will scroll the page by 200 units until it reaches the end of the page and then it takes a screenshot of that page. But for webpages with infinite scroll (like Google images page), it would give API timeout error. Hence a reasonable limit should be added on the number of times page is scrolled and also user should be able to specify that as a parameter in the post request. If no parameter is specified then a default value could be used.
Relevant Files