<s> from selenium . webdriver import Remote <EOL> from selenium . webdriver . common . desired_capabilities import DesiredCapabilities <EOL> from splinter . driver . webdriver import BaseWebDriver , WebDriverElement as BaseWebDriverElement <EOL> from splinter . driver . webdriver . cookie_manager import CookieManager <EOL> class WebDriver ( BaseWebDriver ) : <EOL> driver_name = "<STR_LIT>" <EOL> DEFAULT_URL = '<STR_LIT>' <EOL> def __init__ ( self , url = DEFAULT_URL , browser = '<STR_LIT>' , wait_time = <NUM_LIT:2> , ** ability_args ) : <EOL> browsername = browser . upper ( ) <EOL> if browsername == '<STR_LIT>' : <EOL> browsername = '<STR_LIT>' <EOL> abilities = getattr ( DesiredCapabilities , browsername , { } ) <EOL> abilities . update ( ability_args ) <EOL> self . driver = Remote ( url , abilities ) <EOL> self . element_class = WebDriverElement <EOL> self . _cookie_manager = CookieManager ( self . driver ) <EOL> super ( WebDriver , self ) . __init__ ( wait_time ) <EOL> class WebDriverElement ( BaseWebDriverElement ) : <EOL> def mouse_over ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( "<STR_LIT>" ) <EOL> def mouse_out ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( "<STR_LIT>" ) <EOL> def double_click ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( "<STR_LIT>" ) <EOL> def right_click ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( "<STR_LIT>" ) <EOL> def drag_and_drop ( self , droppable ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( "<STR_LIT>" ) <EOL> mouseover = mouse_over <EOL> mouseout = mouse_out </s>
