Target window already closed from unknown error: web view not found #1263
-
I'm facing the below error while running the tests in Jenkins(Runs on Linux platform) after the recent chrome update. The tests are running fine in my local machine. On seeing the coding part, the window is switching back to parent window from child window after some validations. But looks like the parent window is already closed in Jenkins. Error Trace: Any suggestions are much appreciated. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @karthikkjr That could mean a few different things:
Could be something else, but without seeing the actual code that led to the issue, it's going to be trickier to debug. SeleniumBase automatically closes browsers at the end of tests, so you probably don't need to close windows on your own, if that's what's happening. You might also want to try running your tests locally in |
Beta Was this translation helpful? Give feedback.
Hi @karthikkjr That could mean a few different things:
driver.close()
on a window, and then you tried switching to it.-- If you're using Chrome 99, run
sbase install chromedriver 99
.Could be something else, but without seeing the actual code that led to the issue, it's going to be trickier to debug. SeleniumBase automatically closes browsers at the end of tests, so you probably don't need to close windows on your own, if that's what's happening. You might also want to try running your tests locally in
--headless
mode, to se…