Skip to content

Commit fb1ea62

Browse files
author
Janos Pasztor
committed
Moved the webdriver to a namespace (see issue php-webdriver#169 on the original repo)
1 parent 4d55ddb commit fb1ea62

File tree

102 files changed

+258
-46
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+258
-46
lines changed

example.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22
// An example of using php-webdriver.
33

4+
namespace Selenium\WebDriver;
5+
46
require_once('lib/__init__.php');
57

68
// start Firefox with 5 second timeout

lib/JavaScriptExecutor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16+
namespace Selenium\WebDriver;
17+
1618
/**
1719
* WebDriver interface implemented by drivers that support JavaScript.
1820
*/

lib/WebDriver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16+
namespace Selenium\WebDriver;
17+
1618
/**
1719
* The interface for WebDriver.
1820
*/

lib/WebDriverAction.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16+
namespace Selenium\WebDriver;
17+
1618
/**
1719
* Interface representing a single user-interaction action.
1820
*/

lib/WebDriverAlert.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16+
namespace Selenium\WebDriver;
17+
1618
/**
1719
* An abstraction allowing the driver to manipulate the javascript alerts
1820
*/

lib/WebDriverBy.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16+
namespace Selenium\WebDriver;
17+
1618
/**
1719
* The basic 8 mechanisms supported by webdriver to locate a web element.
1820
* ie. 'class name', 'css selector', 'id', 'name', 'link text',

lib/WebDriverCapabilities.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16+
namespace Selenium\WebDriver;
17+
1618
interface WebDriverCapabilities {
1719

1820
/**

lib/WebDriverCommandExecutor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16+
namespace Selenium\WebDriver;
17+
1618
/**
1719
* Interface for all command executor.
1820
*/

lib/WebDriverDimension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16+
namespace Selenium\WebDriver;
17+
1618
/**
1719
* Represent a dimension.
1820
*/

lib/WebDriverDispatcher.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16+
namespace Selenium\WebDriver;
17+
1618
class WebDriverDispatcher {
1719

1820
/**

0 commit comments

Comments
 (0)