Python Forum
Migrating Selenium from Windows 7 to 10
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Migrating Selenium from Windows 7 to 10
#11
Doh! Sorry but I had a typo. It is working now Thanks.

However, why did it matter where the gecko driver lived as long as the path in the service call was correct?
Reply
#12
(Apr-08-2022, 06:11 PM)gw1500se Wrote: Doh! Sorry but I had a typo. It is working now Thanks.
👍

(Apr-08-2022, 06:11 PM)gw1500se Wrote: However, why did it matter where the gecko driver lived as long as the path in the service call was correct?
Because Selenium also dos a check that driver most be in OS Path.
Something like this.
>>> import os
>>> 
>>> path = r'C:\cmder\bin'
>>> if path in os.environ['PATH']:
...     print('In OS Path')
...     
In OS Path
>>> path = r'C:\foo'
>>> if path in os.environ['PATH']:
...     print('In OS Path')
...    # Give a error message eg (Executable needs to be in PATH)  
 
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 3,657 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