Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
944 views
in Selenium by
recategorized by

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 like 0 dislike
by
selected by
 
Best answer
It looks like this is environment setup error.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...