I'm running Codeception tests. For display purposes, I want to drive the tests on a single Chrome browser [or FF idc], and keep the browser open between test runs. I know there is a way to do this [I did it, but forgot how!].
I'm running: Ubuntu 20 google-chrome 86
Currently, the tests run fine, and the GUI pops up, but then closes at the end of the run.
I think it has something to do with the parameter "browserSessionReuse" or "restart" or "detach" but I can't figure out where to put it, especially in PHP!
How can I use just one browser, and keep using it, it Codeception?
yml:
class_name: AcceptanceTester
modules:
enabled:
- \Helper\Acceptance
- WebDriver
config:
WebDriver:
url: 'http://xx123xxx.com/'
port: 4444
browser: chrome
How I launch Selenium:
java -Dwebdriver.chrome.driver=/var/www/html/wp-content/plugins/WPbdd/chromedriver -jar selenium.jar