From d2626232eb19ad566d87272d3a4a91d55907c95a Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 5 Jun 2024 16:34:31 +1200 Subject: [PATCH] ENH Use class name instead of self --- src/FacebookWebDriver.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/FacebookWebDriver.php b/src/FacebookWebDriver.php index b8b93180..6fe76003 100755 --- a/src/FacebookWebDriver.php +++ b/src/FacebookWebDriver.php @@ -83,7 +83,7 @@ class FacebookWebDriver extends CoreDriver * @param string $wdHost The WebDriver host */ public function __construct( - $browserName = self::DEFAULT_BROWSER, + $browserName = FacebookWebDriver::DEFAULT_BROWSER, $desiredCapabilities = [], $wdHost = 'http://localhost:4444/wd/hub' ) { @@ -172,7 +172,7 @@ protected function getBrowserName() * @param string $browserName the name of the browser to start, default is 'chrome' * @return $this */ - protected function setBrowserName($browserName = self::DEFAULT_BROWSER) + protected function setBrowserName($browserName = FacebookWebDriver::DEFAULT_BROWSER) { $this->browserName = $browserName; return $this; @@ -265,9 +265,9 @@ public function setWebDriver(RemoteWebDriver $webDriver) public static function getDefaultCapabilities() { return [ - 'browserName' => self::DEFAULT_BROWSER, + 'browserName' => FacebookWebDriver::DEFAULT_BROWSER, 'platform' => 'ANY', - 'browser' => self::DEFAULT_BROWSER, + 'browser' => FacebookWebDriver::DEFAULT_BROWSER, 'name' => 'Behat Test', 'deviceOrientation' => 'portrait', 'deviceType' => 'tablet', @@ -954,7 +954,7 @@ public function blur($xpath) */ public function keyPress($xpath, $char, $modifier = null) { - $options = self::charToOptions($char, $modifier); + $options = FacebookWebDriver::charToOptions($char, $modifier); $this->trigger($xpath, 'keypress', $options); } @@ -963,7 +963,7 @@ public function keyPress($xpath, $char, $modifier = null) */ public function keyDown($xpath, $char, $modifier = null) { - $options = self::charToOptions($char, $modifier); + $options = FacebookWebDriver::charToOptions($char, $modifier); $this->trigger($xpath, 'keydown', $options); } @@ -972,7 +972,7 @@ public function keyDown($xpath, $char, $modifier = null) */ public function keyUp($xpath, $char, $modifier = null) { - $options = self::charToOptions($char, $modifier); + $options = FacebookWebDriver::charToOptions($char, $modifier); $this->trigger($xpath, 'keyup', $options); }