From b319fa8842e7624c40f742ea9e78c0ee3477c309 Mon Sep 17 00:00:00 2001 From: Ondrej Machulda Date: Fri, 17 Jan 2020 13:03:46 +0100 Subject: [PATCH] Replace facebook/webdriver with php-webdriver/webdriver --- README.md | 4 ++-- composer.json | 2 +- src/Selenium/CapabilitiesResolver.php | 2 +- src/Test/AbstractTestCase.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 18cef387..c08d6dce 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Steward is a set of libraries made to simplify writing and running robust functi - produces test results in JUnit format (easily processable, for example, by Jenkins and other tools) - and more... - Tests are run in parallel, so the only bottleneck is the number of Selenium nodes you start simultaneously. -- Simple syntax sugar layer on top of default [WebDriver commands](https://github.com/facebook/php-webdriver/wiki/Example-command-reference) helps shorten your tests and improve readability. +- Simple syntax sugar layer on top of default [WebDriver commands](https://github.com/php-webdriver/php-webdriver/wiki/Example-command-reference) helps shorten your tests and improve readability. - If you already use PHP, you don't have to learn a new language to write functional tests. Moreover, if you are familiar with unit tests and PHPUnit, you know it all. - Allows you to plan test dependencies. - For example, if you need to wait 2 minutes until some event gets through your message queue before testing the result? No problem! The order of tests is optimized to minimize the total execution time. @@ -29,7 +29,7 @@ Steward is a set of libraries made to simplify writing and running robust functi - Cloud services like [Sauce Labs](https://saucelabs.com/), [BrowserStack](https://www.browserstack.com/) or [TestingBot](https://testingbot.com/) are fully integrated giving you a chance to run tests with less setup and without your own infrastructure. - Steward is field tested - we use it daily in [our company](https://www.lmc.eu/english) to maintain the quality of our products thanks to hundreds of test-cases. The library itself is also extensively covered by unit tests. - Steward is built on solid foundations: [WebDriver](http://www.w3.org/TR/webdriver/) is W3C draft standard for browser automation, -[php-webdriver](https://github.com/facebook/php-webdriver) is the most used and developed Selenium language binding for PHP, +[php-webdriver](https://github.com/php-webdriver/php-webdriver) is the most used and developed Selenium language binding for PHP, [PHPUnit](https://phpunit.de/) is a well known and widely used testing framework, and [Symfony Console](http://symfony.com/doc/current/components/console.html) is industry standard for PHP CLI applications. diff --git a/composer.json b/composer.json index 3aa14c97..753dd3bd 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,7 @@ "beberlei/assert": "^3.0", "clue/graph": "~0.9.0", "doctrine/inflector": "~1.0", - "facebook/webdriver": "dev-community@dev", + "php-webdriver/webdriver": "dev-community@dev", "florianwolters/component-util-singleton": "0.3.2", "graphp/algorithms": "^0.8.1", "nette/reflection": "^2.4.2", diff --git a/src/Selenium/CapabilitiesResolver.php b/src/Selenium/CapabilitiesResolver.php index 5a391fa6..ab158245 100644 --- a/src/Selenium/CapabilitiesResolver.php +++ b/src/Selenium/CapabilitiesResolver.php @@ -122,7 +122,7 @@ protected function setupFirefoxCapabilities(DesiredCapabilities $capabilities): // Firefox does not (as a intended feature) trigger "change" and "focus" events in javascript if not in active // (focused) window. This would be a problem for concurrent testing - solution is to use focusmanager.testmode. // See https://code.google.com/p/selenium/issues/detail?id=157 - $profile = new FirefoxProfile(); // see https://github.com/facebook/php-webdriver/wiki/FirefoxProfile + $profile = new FirefoxProfile(); // see https://github.com/php-webdriver/php-webdriver/wiki/FirefoxProfile $profile->setPreference('focusmanager.testmode', true); $capabilities->setCapability(FirefoxDriver::PROFILE, $profile); diff --git a/src/Test/AbstractTestCase.php b/src/Test/AbstractTestCase.php index 11026bd5..b5887b03 100644 --- a/src/Test/AbstractTestCase.php +++ b/src/Test/AbstractTestCase.php @@ -107,7 +107,7 @@ public function debug(string $format, ...$args): void * Sleep for given amount of seconds. Unlike sleep(), also the float values are supported. * ALWAYS TRY TO USE WAIT() AND EXPLICIT WAITS INSTEAD! * - * @see https://github.com/facebook/php-webdriver/wiki/HowTo-Wait + * @see https://github.com/php-webdriver/php-webdriver/wiki/HowTo-Wait */ public static function sleep(float $seconds): void {