Program terminating with error.

0 votes
I am running a program to check for a keyword in google and the window gets closed after typing the keyword. Then I get this error:

org.openqa.selenium.NoSuchWindowException: no such window: target window already closed

Can someone help me with this?
Dec 27, 2018 in Selenium by Sradha
• 1,720 points
44 views

1 answer to this question.

0 votes
This error you got is because your chrome was closed before the completion of the task either manually or by the program.
You can check your code to verify that, You can update the Chrome/firefox driver.
You can use a try-catch block for the program to better understand the error.
Hope this helps.
answered Dec 27, 2018 by Nabarupa

Related Questions In Selenium

0 votes
1 answer

Error with Selenium File Upload

In your code, you have used "WebElement" ...READ MORE

answered Mar 29, 2018 in Selenium by nsv999
• 5,110 points
1,171 views
0 votes
1 answer
0 votes
2 answers

How to solve the error while connecting real iOS device with Appium server?

Run Command 'ideviceinstaller in Terminal and found ...READ MORE

answered May 14 in Selenium by Siddharth
449 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,110 points
980 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
1,140 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
882 views
0 votes
1 answer

How to handle notifications in Python with Selenium (Chrome WebDriver)

Below will help you: You can disable the ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
2,688 views