claudio-vieira / php-webdriver-bindings

Automatically exported from code.google.com/p/php-webdriver-bindings
0 stars 0 forks source link

Fatal error when running example.php #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Downloaded and extracted php-webdriver-bindings-0.6.0.zip
2. Ran the example from in the extracted directory: php example.php

Actual output:
Fatal error: Cannot redeclare class LocatorStrategy in 
/Users/alexhaan/testing/php-webdriver-bindings-0.6.0/phpwebdriver/LocatorStrateg
y.php on line 2

Expected output:
Some useful output

Changing the include line for LocatorStrategy in example.php to an require_once 
fixes that part of the problem (though I then run into other issues, but I just 
started trying to use this with Selenium Server).

Running this on a Macbook Pro (Snow Leopard), PHP version 5.3.4.

Original issue reported on code.google.com by alexh...@aemail.nl on 22 Jul 2011 at 9:47

GoogleCodeExporter commented 9 years ago
Only one line is needed require_once "phpwebdriver/WebDriver.php" (look at 
tests in test dir).
fixed in r30.  I will prepare more interesting example.php in a couple of days.

Original comment by lukasz.k...@gmail.com on 25 Jul 2011 at 7:54