Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.4

Bug #12689 missing function getNumber
Submitted: 2007-12-14 05:41 UTC Modified: 2007-12-17 13:52 UTC
From: jonathan Assigned: shin
Status: Closed Package: Testing_Selenium (version 0.4.1)
PHP Version: Irrelevant OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-12-14 05:41 UTC] jonathan (Jonathan Vogt)
Description: ------------ Testing_Selenium is missing the function getNumber, so all call to e.g. getXpathCount fail. Test script: --------------- <? require_once 'Testing/Selenium.php'; $baseurl = "http://www.google.de"; $selenium = new Testing_Selenium("*firefox /opt/firefox/firefox-bin", $baseurl); $selenium->start(); $selenium->open("http://www.google.de/"); sleep(10); $count = $selenium->getXpathCount("xpath=//span[contains(@class,'gb')]"); echo $count; $selenium->stop(); ?> Expected result: ---------------- 16 Actual result: -------------- Fatal error: Call to undefined method Testing_Selenium::getNumber() in /usr/share/php/Testing/Selenium.php on line 1932

Comments

 [2007-12-14 12:32 UTC] shin (Shin Ohno)
Thanks, Jonathan. I forgot to put getNumber method in the source code. I will add the method in 0.4.1 release.
 [2007-12-17 09:06 UTC] jonathan (Jonathan Vogt)
I just downloaded the 0.4.1 release, but the getNumber function isn't in it. Sry to say...
 [2007-12-17 13:35 UTC] shin (Shin Ohno)
Thank you for taking the time to report a problem with the package. Unfortunately you are not using a current version of the package -- the problem might already be fixed. Please download a new version from http://pear.php.net/packages.php If you are able to reproduce the bug with one of the latest versions, please change the package version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PEAR. Oops, sorry. I included the old version in 0.4.1. Please try 0.4.2.
 [2007-12-17 13:52 UTC] jonathan (Jonathan Vogt)
now its working, thanks
 [2010-12-08 12:22 UTC] thecancerus (Amit Singh)
I think this error is back in 0.4.4 H:\wamp\www\jobrefer\system\selenium\b2c>phpunit saved_jobs_my_jobs.php phpunit saved_jobs_my_jobs.php PHPUnit 3.5.5 by Sebastian Bergmann. Fatal error: Call to undefined method Testing_Selenium::getNumber() in H:\wamp\bin\php\php5.3.0\PEAR\Testing\Selenium.php on line 1932 PHP Fatal error: Call to undefined method Testing_Selenium::getNumber() in H:\wamp\bin\php\php5.3.0\PEAR\Testing\Selenium.php on line 1932 ======= H:\wamp\www\jobrefer\system\selenium\b2c>pear upgrade Testing_Selenium pear upgrade Testing_Selenium Nothing to upgrade ======= H:\wamp\www\jobrefer\system\selenium\b2c>pear install Testing_Selenium-0.4.4 pear install Testing_Selenium-0.4.4 pear/Testing_Selenium is already installed and is the same as the released version 0.4.4 install failed