Home » Testing » Testing_Selenium » Bug #9337
Permission denied to get property Location.href
Details
| Submitted | 2006-11-15 14:01 UTC |
|---|---|
| From | daniel-hofstetter at gmx dot ch |
| Status | Bogus |
| Package | Testing_Selenium |
| PHP Version | 5.1.6 |
| OS | Debian Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-11-15 14:01 UTC] daniel-hofstetter at gmx dot ch
Description:
------------
$this->selenium->open() causes an unexpected exception.
I am using Selenium RC 0.9.0 and Firefox 1.5.0.7.
Test script:
---------------
class SeleniumTest extends UnitTestCase
{
function setUp()
{
$this->selenium = new Testing_Selenium("*firefox /usr/lib/firefox/firefox-bin", "http://www.google.com");
$result = $this->selenium->start();
}
function tearDown()
{
$this->selenium->stop();
}
function testFinal()
{
$this->selenium->open("http://pear.php.net/packages.php");
}
}
Expected result:
----------------
There shouldn't be an exception.
Actual result:
--------------
Exception: /home/dho/projects/xy/app/tests/app/cases/models/selenium.test.php ->
SeleniumTest -> testFinal -> Unexpected exception of type
[Testing_Selenium_Exception] with message [The Response of
the Selenium RC is invalid: Permission denied to get
property Location.href] in
[/home/dho/projects/xy/app/vendors/Selenium.php] line
[1200]
[2006-11-15 17:28 UTC] daniel-hofstetter at gmx dot ch
I saw my error: I provided a different url in the
constructor than used later in the code