S
S
Space Around2020-07-27 17:24:55
Automation
Space Around, 2020-07-27 17:24:55

Selenium WebDriver vs PhantomJS API?

There is a desire to automate some actions in the online store, can you tell me which is better to choose Selenium WebDriver or PhantomJS?
I know that Selenium WebDriver is a program (driver) for managing any browser, and PhantomJS is a browser, but PhantomJS has its own API and on top of this API there are many ready-made libraries that are more convenient to use by this browser.
What can you advise? I have one criterion - the speed of work

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DevMan, 2020-07-27
@viksnamax

if phantom/analogues cover your needs, use them.
selenium runs real browsers, and that has its perks.

I
Ivan Yakushenko, 2020-07-27
@kshnkvn

In terms of speed, there is nothing better than Chrome. To be more precise, in most cases the difference between Chrome / Firefox is minimal, but PhantomJS is much inferior to them. The only question is what kind of performance will be enough for you: if there is no need to win any 1 ms on each action, then take what will be more convenient to work with, but if the performance issue is critical, then you can not look towards PhantomJS.

Q
qlkvg, 2020-07-28
@qlkvg

In March 2018, the development of PhantomJS was suspended due to lack of active contributions. ( link )
I stopped using it a year or two ago due to the fact that on some sites it behaved frankly badly. selenium + logless ff is more stable and certainly not slower.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question