Currently i run a sample test-case in Intelij using selenium in serenity
1 2 3 4 5 6 7 8 9
public class LaunchingChrome {
public static void main(String[] args) {
String exePath = "C:\\Users\\abc\\Desktop\\Server\\chromedriver.exe";
System.setProperty("webdriver.chrome.driver", exePath);
WebDriver driver = new ChromeDriver();
driver.get("http://toolsqa.wpengine.com/automation-practice-form/");
}
}
For the chrome driver path i have assigned a local system path . If i run the same test cases in remote machine or on server i am ending up in failure .
Now my question is how we can run ChromeDriver on the server ?