I am getting the following error when grid has been set up and test is to be executed on the local machine
Error forwarding the new session Empty pool of VM for setup Capabilities [{platform=MAC, browserName=firefox, version=}]
Command duration or timeout: 227 milliseconds
My Beforemethod has the following lines of code
DesiredCapabilities cap = null ;
System.out.println("Browser: "+this.browser);
if(this.browser.equals("FF"))
cap = DesiredCapabilities.firefox();
else
{
if(this.browser.equals("chrome"))
cap = DesiredCapabilities.chrome();
}
String browserName, browserVersion;
cap.setPlatform(Platform.MAC);
/* trying with local machine */
driver = new RemoteWebDriver(new URL(" http://127.0.0.1:4444/wd/hub"), cap);