#NEWLINE# def start( self ) : #NEWLINE# #INDENT# "\n        Starts the ChromeDriver Service.\n\n        :Exceptions:\n         - WebDriverException : Raised either when it can't start the service\n           or when it can't connect to the service\n        " #NEWLINE# env = ( self . env or os . environ ) #NEWLINE# try : #NEWLINE# #INDENT# self . process = subprocess . Popen ( ( [ self . path , ( '--port=%d' % self . port ) ] + self . service_args ) , env = env , stdout = PIPE , stderr = PIPE ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# raise WebDriverException ( ( ( "'" + os . path . basename ( self . path ) ) + "' executable needs to be                 available in the path. Please look at                 http://docs.seleniumhq.org/download/#thirdPartyDrivers                 and read up at                 http://code.google.com/p/selenium/wiki/ChromeDriver" ) ) #NEWLINE# #UNINDENT# count = 0 #NEWLINE# while ( not utils . is_connectable ( self . port ) ) : #NEWLINE# #INDENT# count += 1 #NEWLINE# time . sleep ( 1 ) #NEWLINE# if ( count == 30 ) : #NEWLINE# #INDENT# raise WebDriverException ( ( ( "Can not connect to the '" + os . path . basename ( self . path ) ) + "'" ) )