Ardesco / driver-binary-downloader-maven-plugin

A Maven plugin that will download the WebDriver stand alone server executables for use in your mavenised Selenium project.
Apache License 2.0
92 stars 52 forks source link

Downloaded drivers are not executable. #42

Closed mcdonnell-john closed 8 years ago

mcdonnell-john commented 8 years ago

Just found this plugin and have set it up against my project, but the drivers are not executable.

I found 1 and it seems you pushed out version 0.91 with this feature, but it seems to have disappeared?

$ ls -lrt /Users/john/codebase/project/selenium-e2e/selenium_standalone/osx/googlechrome/64bit/ total 13520 -rwxr--r-- 1 john staff 6919952 24 Oct 20:45 chromedriver

Ardesco commented 8 years ago

hmm that's strange.

Can you show me your POM and let me know what OS you are using.

mcdonnell-john commented 8 years ago

I have added this plugin configuration at the moment:

<plugin>
                <groupId>com.lazerycode.selenium</groupId>
                <artifactId>driver-binary-downloader-maven-plugin</artifactId>
                <version>1.0.11</version>
                <configuration>
                    <rootStandaloneServerDirectory>${standalone.binary.root.folder}</rootStandaloneServerDirectory>
                    <downloadedZipFileDirectory>${project.basedir}/src/test/resources/selenium_standalone_zips</downloadedZipFileDirectory>
                    <customRepositoryMap>${project.basedir}/src/test/resources/RepositoryMap.xml</customRepositoryMap>
                    <overwriteFilesThatExist>${overwrite.binaries}</overwriteFilesThatExist>
                    <checkFileHashes>false</checkFileHashes>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>selenium</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

and I am using mac osx (el capitan)

mcdonnell-john commented 8 years ago

Not sure but maybe using Files.setPosixFilePermissions(Path path, Set perms) might be an alternative option, to using File.setExecutable()?

mcdonnell-john commented 8 years ago

This was an error in my resourcemap file :( Sorry.

Ardesco commented 8 years ago

Glad to hear you got it sorted :)