Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Selenium Server standalone 2 as a service in windows XP

How can I run Selenium Server Standalone 2 as a windows service in Windows XP?

like image 665
Rayan Be Avatar asked Apr 03 '12 18:04

Rayan Be


1 Answers

Or if you want it start at startup, you can do this:

  1. Create file 01_start_hub.bat which will contain this command:

    java -jar selenium-server-standalone-2.20.0.jar -role hub
    
  2. Create file 02_start_node.bat which will contain this command:

    java -jar selenium-server-standalone-2.20.0.jar -role node  -hub http://localhost:4444/grid/register
    
  3. Place both bat files into Startup folder C:\Documents and Settings\UserName\Start Menu\Programs\Startup

Yes you will have two "ugly" dos prompts after startup, but this is quickwin solutin

like image 74
Pavel Janicek Avatar answered Oct 05 '22 00:10

Pavel Janicek