SeleniumHQ / selenium-ide

Open Source record and playback test automation for the web.
https://selenium.dev/selenium-ide/
Apache License 2.0
2.73k stars 739 forks source link

Persist session not working in side runner #1774

Open pr0grammm opened 5 months ago

pr0grammm commented 5 months ago

🐛 Bug Report

Tried enabling the persist session option and while it works as expected when I manually run the test suite from selenium IDE, it doesn't work when I use the side runner with the side file directly.

To Reproduce

My first test case is login and subsequent n test cases all need login, I don't want to login n times. And when I run this suite through IDE manually with persist enabled, login happens once and same browser is used for subsequent tests and I don't need to login again. However when I use the side file with side runner, a new browser starts up for each test in the suite and login session is not maintained.

Also I have tried the solutions suggested in this thread https://github.com/SeleniumHQ/selenium-ide/issues/954 such as enabling chrome options etc and it hasn't worked.

Expected behavior

when persist session is enabled in IDE it should also be enabled for side runner.

Project file reproducing this issue (highly encouraged)

Please provide a project file .side that reproduces this issue.

Issues without a reproduction project are likely to stall.

Environment

OS: Windows 11 Selenium IDE Version: 4.0.1 Selenium SIDE Runner Version: 4.0.0 Node version: 20.11 Browser: chrome Browser Version: 121.0.6167.140

toddtarsi commented 4 months ago

@pr0grammm - I am trying some stuff in latest side-runner, but it is untested. Basically, if persist session is active, instead of quitting the session, I just close the last window. I need to add a test side file to let me have more guarantees about whats going on here.