Show page during testing with PhantomJS via Selenium

I am testing a Django application using Selenium and PhantomJS. I am debugging a test failure. Is there a way to make the headless PhantomJS appear unexpectedly like a real browser on the screen so that I can easily debug the problem?

+5
source share
1 answer

Although opening a browser is not possible, you can take screenshots at the point of failure. This will help you understand why and where your test fails. http://phantomjs.org/screen-capture.html

0
source

Source: https://habr.com/ru/post/1202191/


All Articles