How can I use Selenium with Phalcon?

Hi guys, I've been learning a bit about Selenium, I've been using Eclipse (and Java) in order to create a couple of scripts. I have to get into a page and retrieve some information about some books. My script is already working, but as I mentioned this is only with Eclipse.

Now I need to implement this in my Phalcon project in order to receive some database info, and use that to search for the book and retrieve some info from a webpage. Also I shall need to display this somehow, which is not really the issue here.

I was wondering if someone can please help me on how to use Selenium with Phalcon. I already know how the scripting works, but I just don't have a clue on how to the selenium libraries and all of that stuff. I'm a beginner, and a step by step guide would be highly appreciated or any info you might have. Thank you so much!!!

You've written your scraper in Java, which you'd have to integrate with PHP somehow...

A simpler option would be to use a native PHP library for Selenium, for eg: https://github.com/facebook/php-webdriver

Btw, your issue has nothing to do with Phalcon... I wouldn't expect a step-by-step tutorial here :P



34.7k

Hey man

To use test in Phalcon I recommend use Codeception, it have support module Phalcon also for selenium see at http://codeception.com/11-20-2013/webdriver-tests-with-codeception.html#.VwiE%5D9ntbU



1.2k

Awesome, I'll check it out, thank you!!

Hey man

To use test in Phalcon I recommend use Codeception, it have support module Phalcon also for selenium see at http://codeception.com/11-20-2013/webdriver-tests-with-codeception.html#.VwiE%5D9ntbU