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,760 points
1,445 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 30, 2018 in Selenium by nsv999
• 5,500 points
6,221 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, 2019 in Selenium by Siddharth
2,651 views
0 votes
2 answers

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,500 points
13,673 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,142 views
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,910 points
7,221 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,874 views
+1 vote
4 answers
+1 vote
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,910 points
14,422 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP