#NEWLINE# def connect( self , browser ) : #NEWLINE# #INDENT# if ( self == 'Chrome' ) : #NEWLINE# #INDENT# self . webdriver = Chrome ( os . path . join ( os . path . dirname ( __file__ ) , '..' , 'chromedriver' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( browser == 'Firefox' ) : #NEWLINE# #INDENT# self . webdriver = Firefox ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# from . browser_integration import warning #NEWLINE# warning ( 'Unknow browser driver: {}' . format ( browser ) )