Hi,
I'm using the isOpen method (from SensioLabs\Behat\PageObjectExtension\PageObject\Page class) like this:
PHPUnit_Framework_Assert::assertTrue(
$this->getPage('Home page')->isOpen(),
'Home page is not open'
);
The problem is that when the page fails to open I have no clue why, just my generic message 'Home page is not open'. This is because isOpen method is catching all the exceptions thrown during verification (and their useful messages).
I did a workaround and overrode the isOpen method without the try/catch, but, from my point of view Page public interface should provide this.
What do you think?
Thanks!
Hi,
I'm using the isOpen method (from SensioLabs\Behat\PageObjectExtension\PageObject\Page class) like this:
The problem is that when the page fails to open I have no clue why, just my generic message
'Home page is not open'. This is because isOpen method is catching all the exceptions thrown during verification (and their useful messages).I did a workaround and overrode the isOpen method without the try/catch, but, from my point of view Page public interface should provide this.
What do you think?
Thanks!