Skip to content

Commit

Permalink
修正银河下单程序登陆 (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
keshunchen authored Sep 4, 2020
1 parent d63de43 commit 1724b21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion easytrader/yh_clienttrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ def login(self, user, password, exe_path, comm_password=None, **kwargs):
self._app.top_window().Edit3.type_keys(
self._handle_verify_code(is_xiadan)
)
self._app.top_window()["确定" if is_xiadan else "登录"].click()
if is_xiadan:
self._app.top_window().child_window(control_id=1006, class_name="Button").click()
else:
self._app.top_window()["登录"].click()

# detect login is success or not
try:
Expand Down

0 comments on commit 1724b21

Please sign in to comment.