M
M
martensit2016-11-17 05:36:55
Python
martensit, 2016-11-17 05:36:55

Realistically make PhantomJS multithreaded through Selenium Webdriver?

Realistically make PhantomJS multithreaded through Selenium Webdriver?
If yes, then you are interested in what environment and in what programming language this can be done.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sundukov, 2016-11-17
@martensit

PhantomJS multithreading is a source question. One PhantomJS node is capable of receiving Webdriver requests to load different pages. Those. it is possible to work with several sites at the same time within the framework of one running PhantomJS. With one site under one account is problematic. Therefore, if you need to work with one site under one account in parallel, then the easiest way is to run several instances of PhantomJS, and then resolve requests from the application to different nodes.
Personally, I do it myself from PHP. In the application, a node launcher is written, as well as a request router. In principle, there is something ready in Java, you need to look towards Selenium Grid ( an option from Yandex ). But I didn’t use it myself, it makes no sense for me to blur the stack with Java.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question