giorgiosironi / phpunit-selenium

Selenium RC integration for PHPUnit
http://www.phpunit.de/
Other
602 stars 271 forks source link

Implement Get Element Rect #387

Closed paulbriton closed 7 years ago

paulbriton commented 7 years ago

The location() function isn't in the WebDriver specifications and it isn't working for the Geckodriver. Is it possible to implement rect() function instead ?

See https://www.w3.org/TR/webdriver/#get-element-rect for more details.

giorgiosironi commented 7 years ago

When Selenium 2 support was implemented https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol was the only available spec, but it's now been obsoleted by the W3 one. Would welcome a pull request, adding new elements should be feasible by just adding new classes and some configuration as they follow the Command pattern (inside the PHPUnit_Selenium2TestCase_* area).