Headless Selenium Testing with Python and PhantomJS

preview_player
Показать описание
In this tutorial, we look at how to conduct Selenium Webdriver testing with Python and PhantomJS.
Рекомендации по теме
Комментарии
Автор

This was super helpful! Do you think HasData's API can help streamline Selenium tests even more?

kaimay
Автор

Recently I wanted to get trying to get a screenshot of a particular google map using the python bindings for selenium, and Phantom gave me a static like map from the early days of Google map. That was one such case where the Firefox driver scores over Phantom on websites which make rich use of new technologies like Ajax.

maybe_anubhav
Автор

great question. i honestly do not have an answer. i personally test it out in chrome and/or firefox every now and then so i can visualize the results. that would be a great question to ask the phantom team directly. please let me know if you get a response.

hermanmu
Автор

Very nice, clear description. Thanks. What brew is?

omikronsc
Автор

Thanks for the example Michael. It made things a bit clearer. 

Also, just an observation, your time.sleep is 1 in Phantomjs, and 2 in Firefox. Doesn't that throw the results off by 1 sec? I know I am nitpicking or may be totally wrong... :-)

Thanks anyways!

jonathansitruk
Автор

A tutorial in combination with Resemble.js would be cool! (for layout/css testing)

Автор

will it work on AWS EC2 linux machine, will i be able to do this only with command line?m thnking of going with firefox?

akashgeorge
visit shbcf.ru