File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -631,7 +631,7 @@ public function switchTo(): WebDriverTargetLocator
631
631
* @param string $name
632
632
* @param array $params
633
633
*/
634
- public function execute ($ name , $ params )
634
+ public function execute ($ name , $ params ): mixed
635
635
{
636
636
$ this ->start ();
637
637
@@ -660,7 +660,7 @@ public function findElements(WebDriverBy $locator): array
660
660
*
661
661
* @throws \Exception
662
662
*/
663
- public function executeScript ($ script , array $ arguments = [])
663
+ public function executeScript ($ script , array $ arguments = []): mixed
664
664
{
665
665
if (!$ this ->webDriver instanceof JavaScriptExecutor) {
666
666
throw $ this ->createException (JavaScriptExecutor::class);
@@ -674,7 +674,7 @@ public function executeScript($script, array $arguments = [])
674
674
*
675
675
* @throws \Exception
676
676
*/
677
- public function executeAsyncScript ($ script , array $ arguments = [])
677
+ public function executeAsyncScript ($ script , array $ arguments = []): mixed
678
678
{
679
679
if (!$ this ->webDriver instanceof JavaScriptExecutor) {
680
680
throw $ this ->createException (JavaScriptExecutor::class);
You can’t perform that action at this time.
0 commit comments