File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ def login():
85
85
passwd = f .readline ().strip ()
86
86
else :
87
87
rcsid = input ("RCS ID: " )
88
- passwd = getpass .getpass ("Password: " )
88
+ passwd = getpass .getpass ("RCS Password: " )
89
89
90
90
print ("Setting up selenium" , file = sys .stderr )
91
91
driver = webdriver .Chrome (options = chrome_options )
@@ -107,11 +107,14 @@ def login():
107
107
108
108
print ("2FA: enter code on your phone" , file = sys .stderr )
109
109
driver .implicitly_wait (25 )
110
- driver .find_element (By .ID , "dont-trust-browser-button" ).click ()
110
+ driver .find_element (
111
+ By .CSS_SELECTOR ,
112
+ "#dont-trust-browser-button,a[href='/rss/twbkwbis.P_GenMenu?name=bmenu.P_MainMnu']" ,
113
+ ).click ()
111
114
driver .implicitly_wait (10 )
112
115
driver .find_element (
113
116
By .CSS_SELECTOR , 'a[href="/rss/twbkwbis.P_GenMenu?name=bmenu.P_MainMnu"]'
114
- )
117
+ ). click ()
115
118
116
119
return driver , True
117
120
except NoSuchElementException :
You can’t perform that action at this time.
0 commit comments