• Tech Travel Hub is your one stop, ultimate tour guide to all things tech, travel, visas and digital nomads
  • Home
  • Blog
    • Technology
      • General Tech
      • Blogging
      • Java
    • Lifestyle
      • General Lifestyle
    • Travel
    • Educational
    • Business
  • About
  • Contact
Menu
  • Home
  • Blog
    • Technology
      • General Tech
      • Blogging
      • Java
    • Lifestyle
      • General Lifestyle
    • Travel
    • Educational
    • Business
  • About
  • Contact
View Blog
May 6, 2023May 6, 2023

How To Resolve OSError : WinError 6 The Handle is Invalid

This is a very interesting failure. When we do prototype, say with 10 testcases,
Webdriver seems to have behave correctly. All testcases passes. Now when we
put out test suite,after execution of 10-12 testcases,It starts failing/Skipping or
erroring out. The trace we get is listed below:

 


Traceback (most recent call last):
File"C:UsersavraciuworkspaceAutomationTesting_v2.0srcHomeIPSEC
CreateIPSECCreate_IPSEC_GW_Term_Monthly.py", line 21, in
setUpself.driver = webdriver.Firefox()
File "C:Python34libsite-packagesseleniumwebdriverfirefoxwebdriver.py",
line 64,in __init__self.binary, timeout),
File "C:Python34libsite-packagesseleniumwebdriverfirefox
extension_connection.py",
 line 51, in __init__self.binary.launch_browser(self.profile)
File "C:Python34libsite-packagesseleniumwebdriverfirefox
firefox_binary.py", line 69,
 in launch_browser
self._start_from_profile_path(self.profile.path)
File "C:Python34libsite-packagesseleniumwebdriverfirefoxfirefox_binary.py",
line 92,
 in _start_from_profile_path  env=self._firefox_env)
File "C:Python34libsubprocess.py", line 754, in __init___cleanup()
File "C:Python34libsubprocess.py", line 474, in _cleanup
res = inst._internal_poll(_deadstate=sys.maxsize)
File "C:Python34libsubprocess.py", line 1146, in _internal_poll
if _WaitForSingleObject(self._handle, 0) == _WAIT_OBJECT_0:
OSError: [WinError 6] The handle is invalid

The Workaround:

Checkout the configuration may be that is wrong.Mostly the latest browser version and WebDriver version do not match. Downgrade one level down for browser. It should work. On the next step downgrade the Webdriver version as well.
 
Next is to check the version of the OS as well as the version of the installed software’s. Like-the eclipse,phython,webDriver etc. They should be as per OS. I mean if your’s is a 64 bit OS. Please use same 64 bit application as well. 

Post navigation

Previous post
Next post

Umer Umer

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • 5 Ultimate Dental Nightmares and How to Avoid Them
  • 7 Alarming Facts on Early And Late Dental Implant Complications
  • The Skinny Jean Is Dead: The 5 Denim Styles You Need Now
  • 5 Reasons Why The Demand For Digital Marketing Courses Is Unstoppable At This Moment?
  • 3 Delicious Facts About Cakes That Very Few People Know

Categories

  • Adventure
  • Agile Methodology
  • All world Tour
  • Android Development
  • Ansible
  • App
  • App Development
  • Artificial Intelligence
  • AWS
  • Bitcoin
  • BlockChain
  • Blogging
  • Box Packing
  • Business
  • business
  • Business Communication
  • buying guide
  • C
  • car
  • Care
  • Certification
  • Certification
  • Chatbot
  • cinema
  • Cloud Tech
  • Content Marketing
  • Corporate
  • covid-19
  • crucible
  • Cryptocurrency
  • Database
  • DevOps
  • DevOps
  • Digital Marketing
  • Drawing
  • Dress
  • Educational
  • Employment
  • Entertainment
  • Exceptions In Java
  • Fashion
  • Festivals
  • Finance
  • Fitness
  • Food
  • Game
  • Gift ideas
  • Groovy
  • Health
  • Health
  • home
  • home improvement
  • HR
  • IllegalThreadStateException in Java
  • India Tour
  • Instagram
  • Ios
  • ISO
  • Java
  • Javascript
  • job
  • Kids Section
  • Kitchen
  • Law
  • Life Style
  • Lifestyle
  • Lifestyle Home Improvement
  • Main Stories
  • Management
  • Mattress
  • Motorable
  • Movie
  • nursing
  • Pendrive
  • Perspective
  • Pet
  • Popular
  • Programming
  • Python
  • Relationships
  • Selenium
  • SEO
  • Skin
  • SOAPUI
  • Social Media
  • Social Media Marketing
  • Software
  • software development
  • Software Development Model
  • Software Engineering
  • Software Testing
  • Sports
  • Startup
  • T Robot
  • TDD
  • Tech
  • Tech News
  • Tech News
  • Technology
  • Tool
  • Tour Guide
  • Tour Guide
  • Travel
  • UFT
  • Uncategorized
  • USB Cable
  • VPN
  • Web Development
  • Wordpress
  • Yoga
  • Youtube

Tags

Instagram Instagram Marketing Marketing SEO Thoptv App

Categories

  • Tech
  • Travel
  • Visas
  • Digital Nomad
  • Tech
  • Travel
  • Visas
  • Digital Nomad

Publishing

If you would like to publish on our site, please email admin@techtravelhub.com

Quick Links

  • Home
  • Blog
    • Technology
      • General Tech
      • Blogging
      • Java
    • Lifestyle
      • General Lifestyle
    • Travel
    • Educational
    • Business
  • About
  • Contact
  • Home
  • Blog
    • Technology
      • General Tech
      • Blogging
      • Java
    • Lifestyle
      • General Lifestyle
    • Travel
    • Educational
    • Business
  • About
  • Contact

Contact

Tech Travel Hub LLC

Address:
8 The Green STE A
Dover
Delaware, 19901

Phone: +1 302 956 9948