I\'m trying to run a selenium test which should work just fine (hasn\'t changed and used to work) but I\'m getting this strange error.
System.InvalidOperatio
Just make sure you've set the browser exe correctly, like to execute your tests on Chrome you would need chromedriver.exe in your path.
System.setProperty("webdriver.chrome.driver", System.getProperty("user.dir")+ "\\src\\main\\resources\\chromedriver.exe");