コード例 #1
0
ファイル: webdriver.py プロジェクト: anupsahoo/selenium-3
 def _execute(self, command, params=None):
     try:
         return RemoteWebDriver.execute(self, command, params)
     except ErrorInResponseException, e:
         # Legacy behavior: calling close() multiple times should not raise
         # an error
         if command != Command.CLOSE and command != Command.QUIT:
             raise e
コード例 #2
0
ファイル: webdriver.py プロジェクト: virajs/selenium-1
 def _execute(self, command, params=None):
     try:
         return RemoteWebDriver.execute(self, command, params)
     except ErrorInResponseException, e:
         # Legacy behavior: calling close() multiple times should not raise
         # an error
         if command != Command.CLOSE and command != Command.QUIT:
             raise e