コード例 #1
0
ファイル: webdriver.py プロジェクト: hugs/selenium
 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 プロジェクト: anthrax3/selenium-2
 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