Reconnect to same debug port

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Reconnect to same debug port

Postby truptik » Wed Oct 17, 2018 1:26 pm

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.
truptik
Newbie
 
Posts: 1
Joined: Wed Oct 17, 2018 12:57 pm

Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 25 guests