We have an application with a CEF control embedded in it.
We initialize CEF with a debug port on application launch. (before the CEF browser container window)
We use ChromeDriver to automate tests using the ChromeOptions -> DebuggerAddress pinting to same debugport above. This works for the most part. However when we close the CEF browser container window, and re open it, the driver cannot connect to the same port again.
I have tried:
1. Re use the same webdriver created before closing , since the debug port didnt change.
2. On closing, dispose the web driver and re create it by trying to connect to same port again.
For #1 I see an error: No such window, window was already closed.
For #2 I see no error but the webdriver cannot find any controls.
Any help or pointers is appreciated.