Development

Discover top YouTube channels dedicated to UX design, offering insights and tutorials to enhance your skills in creating intuitive and…

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.