B
B
selenium

Special browser for selenium?

Chromiums and geckos (quantum) take 480MB of RAM for 1 copy in headless mode. Moreover, selenium normally does not support many tabs in 1 window. It turns out that for multithreading, you need to run 1 window (480mb) ~ 2.5gb for each thread, which is a lot.
Have they already come up with some special browser special for selenium and headless so that there are tabs or at least 150-200 RAM per window.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2021-03-27
@bacon

well, for example, PhantomJS eats less, does not support everything, and problems with development.

R
rPman, 2021-03-27
@rPman

With the help of webkit libraries, you can create an application (10 lines in java, for example, there are libraries for everything) where you completely control the browser (without the functions of downloading files, geolocation and a bunch of everything that is often unnecessary), and by accessing dom objects or injecting javascript code you can do whatever you want (IMHO it’s more convenient than silenium)
When I looked, this browser took up 50mb of memory at most (now I checked why it’s already eating more than 100, it seems this is the latest version of webkit has become like this)
ps video playback will be without gpu acceleration

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question