Selenium RC and PHP for beginners -


i running ubuntu server apache/php/mysql. want use selenium on 1 of php projects. basically, want setup can more or less copy paste code firefox selenium ide (format set php) php project, this:

<?php  require_once 'phpunit/extensions/seleniumtestcase.php';  class example extends phpunit_extensions_seleniumtestcase {   protected function setup()   {     $this->setbrowser("*chrome");     $this->setbrowserurl("http://www.google.com/");   }    public function testmytestcase()   {     $this->type("q", "stack overflow");     $this->click("link=2");     $this->waitforpagetoload("30000");     $this->click("btng");     $this->waitforpagetoload("30000");     $this->type("q", "stack overflow php");     $this->click("btng");     $this->waitforpagetoload("30000");   } } ?> 

i have tried figure out how in php using selenium rc, documentation confusing , outdated.

i grateful instructions beginners on how started php , selenium rc.

thank much.

edit:

thanks feedback. have got selenium , running on ubuntu/firefox , obvious not looking for. fact runs java server , dependent on full blown browser makes lightweight.

if knows similar solution can load php library interact dom/html, please tell me.

i haven't done selenium, understanding if have selenium ide, there no way more run in browser - different language outputs irrelevant.

if want incorporate selenium program, in language, need selenium rc.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -