File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
pgadmin/misc/cloud/google Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11
11
import pickle
12
12
import json
13
13
import os
14
- from pathlib import Path
15
14
from urllib .parse import unquote
16
15
17
16
from config import root
@@ -90,7 +89,7 @@ def verify_credentials():
90
89
except Exception as e :
91
90
return bad_request (errormsg = str (e ))
92
91
93
- if client_secret_path is not None and Path ( client_secret_path ). exists ():
92
+ if client_secret_path and os . path . exists (client_secret_path ):
94
93
with open (client_secret_path , 'r' ) as json_file :
95
94
client_config = json .load (json_file )
96
95
Original file line number Diff line number Diff line change @@ -62,14 +62,16 @@ def reset_layout(self):
62
62
self .driver .refresh ()
63
63
try :
64
64
WebDriverWait (self .driver , 3 ).until (EC .alert_is_present ())
65
- self .driver .switch_to_alert () .accept ()
65
+ self .driver .switch_to . alert .accept ()
66
66
attempt = attempt + 1
67
67
except TimeoutException :
68
68
attempt = attempt + 1
69
69
70
70
self .click_element (self .find_by_css_selector (
71
71
"li[data-label='Reset Layout']" ))
72
- self .click_modal ('OK' )
72
+ self .click_modal ('Yes' )
73
+ if WebDriverWait (self .driver , 3 ).until (EC .alert_is_present ()):
74
+ self .driver .switch_to .alert .accept ()
73
75
self .wait_for_reloading_indicator_to_disappear ()
74
76
75
77
def refresh_page (self ):
You can’t perform that action at this time.
0 commit comments