phpunit-selenium
phpunit-selenium copied to clipboard
No way to retrieve timeout values
While we can perform setTimeout() and even setHttpTimeout(), there is no way to get the current value. There is no getTimeout() or getHttpTimeout(), for example.
Because SeleniumTestCase passes all calls to a property object -- instead of inheriting -- and because that object (SeleniumTestCase_Driver) stores nearly everything as protected, it is impossible to get to without hacking the code.
in other words, the following will fail:
print $this->drivers[0]->seleniumTimeout;
with error "Cannot access protected property"
Will the absence of commands for retrieving the timeouts make these values undefined when they are left to their defaults? Maybe it's out of the scope for the test case to retrieve timeouts.
The idea was for the test to be agnostic of the settings but be able to know what the setting is so it knows whether to change it or not.
If this is still a problem, feel free to open a PR to add the getters that are necessary for accessing these values from the tests.