Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Closing Web Browser
#1
Hi. I'm very new to Python coding. This is my code (attached).

import webbrowser
url = ""https://newholland.com"
webbrowser.open(url)

How do I add a simple 'wait' i.e. wait for 5 seconds, the 'close' that webpage?

Thanks

Attached Files

Thumbnail(s)
   
Reply


Messages In This Thread
Closing Web Browser - by rdwessex - Jul-16-2024, 07:30 AM
RE: Closing Web Browser - by snippsat - Jul-16-2024, 08:02 AM
RE: Closing Web Browser - by Thirupathamma - Jul-16-2024, 02:28 PM
RE: Closing Web Browser - by Thirupathamma - Jul-16-2024, 02:31 PM
RE: Closing Web Browser - by rdwessex - Jul-16-2024, 04:57 PM
RE: Closing Web Browser - by snippsat - Jul-17-2024, 01:01 PM

Forum Jump:

User Panel Messages

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