Skip to content
Snippets Groups Projects
Commit d4d6bf2d authored by Youri van Koppen's avatar Youri van Koppen
Browse files

Issue #3457244 by megachriz: Fixed JS tests by using the standard W3C command...

Issue #3457244 by megachriz: Fixed JS tests by using the standard W3C command rect() instead of the non-standard command location().
parent d10c07da
No related branches found
Tags 7.x-5.7
1 merge request!14Resolve #3457244 "Fix js tests"
Pipeline #306341 passed
......@@ -235,7 +235,11 @@ class FloatTest extends WebDriverTestBase {
* Data about the element's location, including the X and Y position.
*/
protected function getElementPosition(string $xpath): array {
return $this->getSession()->getDriver()->getWebDriverSession()->element('xpath', $xpath)->location();
return $this->getSession()
->getDriver()
->getWebDriverSession()
->element('xpath', $xpath)
->rect();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment