KBM
KBM

Reputation: 361

Grunt with selenium grid

Could anybody make grunt work with selenium grid? I could set up grid by passing the role: hub under serverOptions of start-selenium-server task in my gruntfile but soon end up getting -

Error: Timeout waiting for selenium to start. Check if an instance of selenium is already running. Warning: Task "start-selenium-server:config" failed. Use --force to continue.

I am using grunt with protractor.

Upvotes: 0

Views: 200

Answers (2)

KBM
KBM

Reputation: 361

Found a solution by of making grunt work with protractor. In the config file followed the pattern as per the solution provided here -

protractor remote tests multibrowser

While from my grunt file removed the capabilities section. Though i would have loved to not hard code the browser name, as of now could find this as the best solution.

Upvotes: 0

KBM
KBM

Reputation: 361

My bad, i was trying to explicitely start a hub and then register a node. Using seleniumAddress: 'http://localhost:4444/wd/hub' in the config file sets up the hub and registers the nodes on using multi capabilities.

Upvotes: 1

Related Questions