I'm working on test automation for a big project and I'm using Phpunit and as a server I'm using selenium webdriver.
In the source code I'm using asserts like :
$this->assertContains('Project Title', $this->webDriver->getTitle());

I'm wondering how can I add the if-else condition that when it's false I can have a popup or to stop the test.
Thank you.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.