I have a Maven project configured with jasmine-maven-plugin to run javascript tests. I'd like to switch from Phantomjs to Chrome headless without downloading and setting the driver's path executable. I've found WebDriverManager could help, but it seems the download could be started programmatically in a class with:
ChromeDriverManager.getInstance().setup();
I've configured the pom.xml to use the driver (as explained here), now is it possible to configure the pom.xml to also use WebDriverManager to handle the ChromeDriver download without configuring the webdriver.chrome.driver property?
I even thought to use a different jasmine's spec runner template, but it seems it can be just a simple StringTemplate string.
Thanks!
Indeed WebDriverManager works only in runtime. If you want to export the webdriver.chrome.driver
property directly in Maven, you can use the selenium-standalone-server-plugin Maven plugin, or directly export the value of that variable within your plugin (you can find something similar here).