Loading core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php +20 −0 Original line number Diff line number Diff line Loading @@ -214,4 +214,24 @@ private function waitFor($timeout, callable $callback) { return $result; } /** * {@inheritdoc} */ public function dragTo($sourceXpath, $destinationXpath) { // Ensure both the source and destination exist at this point. $this->getWebDriverSession()->element('xpath', $sourceXpath); $this->getWebDriverSession()->element('xpath', $destinationXpath); try { parent::dragTo($sourceXpath, $destinationXpath); } catch (Exception $e) { // Do not care if this fails for any reason. It is a source of random // fails. The calling code should be doing assertions on the results of // dragging anyway. See upstream issues: // - https://github.com/minkphp/MinkSelenium2Driver/issues/97 // - https://github.com/minkphp/MinkSelenium2Driver/issues/51 } } } Loading
core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php +20 −0 Original line number Diff line number Diff line Loading @@ -214,4 +214,24 @@ private function waitFor($timeout, callable $callback) { return $result; } /** * {@inheritdoc} */ public function dragTo($sourceXpath, $destinationXpath) { // Ensure both the source and destination exist at this point. $this->getWebDriverSession()->element('xpath', $sourceXpath); $this->getWebDriverSession()->element('xpath', $destinationXpath); try { parent::dragTo($sourceXpath, $destinationXpath); } catch (Exception $e) { // Do not care if this fails for any reason. It is a source of random // fails. The calling code should be doing assertions on the results of // dragging anyway. See upstream issues: // - https://github.com/minkphp/MinkSelenium2Driver/issues/97 // - https://github.com/minkphp/MinkSelenium2Driver/issues/51 } } }