Radim Bukovský
Radim Bukovský

Reputation: 357

Karate - how to set path to driver properly (executable)

I use Karate paralel run and everything is OK when I use driver configuration:

karate.configure('driver', { type: 'geckodriver', executable: '/Users/rabu/Downloads/geckodriver'});

But I need to change the executable URL from code above to:

  1. project (driver is part of the test project), e.g.: "src/test/java/drivers/geckodriver"
  2. HTTP/HTTPS url e.g. driver is available on "http://radimbukovsky.cz/extra/geckodriver"

I have tried many url variations but I have not been successfull.

Thank you for the help.

Upvotes: 1

Views: 828

Answers (1)

art_architect
art_architect

Reputation: 929

Try

karate.configure('driver', { type: 'geckodriver', executable: './src/test/java/drivers/geckodriver'});

Upvotes: 2

Related Questions