PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Testing » Testing_Selenium » Bug #9337

Permission denied to get property Location.href

Details

Submitted2006-11-15 14:01 UTC
Fromdaniel-hofstetter at gmx dot ch
StatusBogus
PackageTesting_Selenium
PHP Version5.1.6
OSDebian 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