Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

0
Error when running test using a grid set up

Solved 1 Answers 200 Views Selenium
0 1

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);

1 Answer

0
Best answer
0
It looks like this is environment setup error.
answered by
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...