Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
So,

I am currently making an automation software for a client. It uses selenium and chromedriver. Now the chromedriver varies from os to os. Macos, linux and windows have different files of chromedriver,

So if i write some code that just is independent of operating system. How should i do that? I am using python.

I want to make an .exe which automatically detects the chromedriver from the Operating system, user it using.

I am using pyinstaller to make .exe from .py file.

What I have tried:

I might check the os using some python commands...and then make the code use the version of chromedriver.
Posted
Updated 26-Sep-18 1:04am
Comments
Richard MacCutchan 26-Sep-18 9:41am    
"I might check the os using some python commands...and then make the code use the version of chromedriver."
That is most likely the only way it will work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900