0

I am doing a simple bot for automate users tasks in java/swing with selenium. Selenium needs geckodriver on client computer. How should I deliver that driver?

  1. Put in the java package, commit to svn repo and then build jar which users run?

  2. Outsource that task to our IT department, they will have to copy driver in path which we determine?

I want to know what is better practice.

mdolata
  • 184
  • 12

1 Answers1

1

I can response You what works for me. I created jar file of application, using IntelliJ How to create a .jar file or export jar on IntelliJ (like eclipse java archive export) In maven project, I added path to GeckoDriver to main folder and I added driver file to main folder, too.

Remember, that applcation could stop works, when Firefox browser on Client conputer will be updated. So You can add Portable Firefox browser with stopped updating, and configure it in path to Browser. Otherwise, You will have to release new vesions of your application with new driver (for new browser version).