Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selenium Window Not Closing
#1
I have moved a script from Python 3.8.13 (Windows 7) to Python 3.10.4 (Windows 10) and there seems to be several differences I don't understand. I am using Selenium to web scrape via Firefox and all is working fine except one difference. Under 3.8, the command prompt (apparently needed for Selenium) window closed automatically when the script ended. Under 3.10, instead of closing automatically, a command prompt comes up and I have to 'exit' manually. How do I get the Selenium command prompt to close automatically like it did under 3.8? At this point there is no Python script running.
Reply


Messages In This Thread
Selenium Window Not Closing - by gw1500se - Apr-29-2022, 05:37 PM
RE: Selenium Window Not Closing - by Larz60+ - Apr-29-2022, 10:42 PM
RE: Selenium Window Not Closing - by gw1500se - Apr-30-2022, 11:34 PM
RE: Selenium Window Not Closing - by Larz60+ - May-01-2022, 08:19 AM
RE: Selenium Window Not Closing - by gw1500se - May-02-2022, 02:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Selenium opening pdf in new window test 6 15,779 Sep-15-2018, 07:55 PM
Last Post: test
  Getting error when accessing elements in a modal window of an webpage using selenium sumandas89 3 11,787 Jul-13-2018, 10:44 AM
Last Post: mlieqo
  How to access Modal window using Selenium Python sumandas89 0 5,215 Mar-30-2018, 08:21 AM
Last Post: sumandas89
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 4,625 Nov-03-2017, 08:41 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020