B
B
Bjornie2017-06-20 14:54:45
Python
Bjornie, 2017-06-20 14:54:45

Why doesn't PhantomJS work with Selenium?

The developed parser (Python + Selenium) works as required with the Chrome driver . The task is to run the program in the background (without windows), so I chose PhantomJs . But for some unknown reason, the phantom does not want to work with my parser, opens the first page and cannot find the elements I need.
There is nothing supernatural in the parser: fill in the fields, click on the forms, etc. I work directly with input/select/option.
I don’t transfer any settings (although I read that you need to configure SSL, I tried it, but it didn’t help).
What could be wrong? Who worked with PhantomJs and Selenium - please share your experience.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
gill-sama, 2017-06-20
@gill-sama

There is a solution that will allow you to run everything in the background without changing the driver .

D
Dmitry Eremin, 2017-06-20
@EreminD

here to see the code. You can also have a website in addition to see how it all works live

A
Alexey Sundukov, 2017-06-20
@alekciy

Wrap XPath in wait().

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question