Skip to content

Commit a22bbbb

Browse files
committed
Merge remote-tracking branch 'upstream/master'
Conflicts: lib/WebDriver.php lib/__init__.php
1 parent 3b5db54 commit a22bbbb

Some content is hidden

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

49 files changed

+226
-10
lines changed

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 facebook\Selenium\phpWebDriver;
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 facebook\Selenium\phpWebDriver;
17+
1618
/**
1719
* Interface representing a single user-interaction action.
1820
*/

lib/WebDriverAlert.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,17 @@
1515

1616
namespace facebook\Selenium\phpWebDriver;
1717

18+
use facebook\Selenium\phpWebDriver\WebDriverCommandExecutor;
19+
1820
/**
1921
* An abstraction allowing the driver to manipulate the javascript alerts
2022
*/
2123
class WebDriverAlert {
2224

23-
protected $executor;
25+
/**
26+
* @var WebDriverCommandExecutor
27+
*/
28+
protected $executor;
2429

2530
public function __construct($executor) {
2631
$this->executor = $executor;

lib/WebDriverBy.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15+
1516
namespace facebook\Selenium\phpWebDriver;
1617

1718
/**

lib/WebDriverCommandExecutor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16+
namespace facebook\Selenium\phpWebDriver;
17+
1618
/**
1719
* Interface for all command executor.
1820
*/
1921
interface WebDriverCommandExecutor {
2022

2123
// $command and $params will be merged to an command object in the future.
22-
public function execute($command, array $params);
24+
public function execute($command, array $params = null);
2325
}

lib/WebDriverDimension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15+
1516
namespace facebook\Selenium\phpWebDriver;
1617

1718
/**

lib/WebDriverDispatcher.php

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

16+
namespace facebook\Selenium\phpWebDriver;
17+
18+
use facebook\Selenium\phpWebDriver\support\events\EventFiringWebDriver;
19+
1620
class WebDriverDispatcher {
1721

1822
/**

lib/WebDriverElement.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@
1212
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15+
1516
namespace facebook\Selenium\phpWebDriver;
1617

18+
use facebook\Selenium\phpWebDriver\WebDriverSearchContext;
19+
use facebook\Selenium\phpWebDriver\WebDriverPoint as WebDriverLocation;
20+
1721
/**
1822
* Interface for an HTML element in the WebDriver framework.
1923
*/

lib/WebDriverEventListener.php

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

16+
namespace facebook\Selenium\phpWebDriver;
17+
18+
use facebook\Selenium\phpWebDriver\support\events\EventFiringWebDriver;
19+
use facebook\Selenium\phpWebDriver\support\events\EventFiringWebElement;
20+
1621
interface WebDriverEventListener {
1722

1823
/**

lib/WebDriverExceptions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15+
1516
namespace facebook\Selenium\phpWebDriver;
1617

1718
use \Exception;

0 commit comments

Comments
 (0)