Skip to content

Commit

Permalink
Change array syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
uuf6429 committed Jan 19, 2025
1 parent 984f354 commit 2ca5e26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Selenium2Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ public function dragTo(string $sourceXpath, string $destinationXpath)
$source = $this->findElement($sourceXpath);
$target = $this->findElement($destinationXpath);

Check warning on line 1029 in src/Selenium2Driver.php

View check run for this annotation

Codecov / codecov/patch

src/Selenium2Driver.php#L1028-L1029

Added lines #L1028 - L1029 were not covered by tests

$this->getWebDriverSession()->moveto(['element' => $source->getID()]);
$this->getWebDriverSession()->moveto(array('element' => $source->getID()));
$this->getWebDriverSession()->buttondown();

Check warning on line 1032 in src/Selenium2Driver.php

View check run for this annotation

Codecov / codecov/patch

src/Selenium2Driver.php#L1031-L1032

Added lines #L1031 - L1032 were not covered by tests

$this->executeJsOnElement($source, <<<'JS'

Check warning on line 1034 in src/Selenium2Driver.php

View check run for this annotation

Codecov / codecov/patch

src/Selenium2Driver.php#L1034

Added line #L1034 was not covered by tests
Expand All @@ -1040,7 +1040,7 @@ public function dragTo(string $sourceXpath, string $destinationXpath)
JS
);

Check warning on line 1041 in src/Selenium2Driver.php

View check run for this annotation

Codecov / codecov/patch

src/Selenium2Driver.php#L1040-L1041

Added lines #L1040 - L1041 were not covered by tests

$this->getWebDriverSession()->moveto(['element' => $target->getID()]);
$this->getWebDriverSession()->moveto(array('element' => $target->getID()));

Check warning on line 1043 in src/Selenium2Driver.php

View check run for this annotation

Codecov / codecov/patch

src/Selenium2Driver.php#L1043

Added line #L1043 was not covered by tests
$this->getWebDriverSession()->buttonup();

$this->executeJsOnElement($target, <<<'JS'

Check warning on line 1046 in src/Selenium2Driver.php

View check run for this annotation

Codecov / codecov/patch

src/Selenium2Driver.php#L1046

Added line #L1046 was not covered by tests
Expand Down

0 comments on commit 2ca5e26

Please sign in to comment.