Skip to content

Commit

Permalink
修正银河下单程序登陆
Browse files Browse the repository at this point in the history
  • Loading branch information
keshunchen committed Sep 3, 2020
1 parent d63de43 commit 16d5540
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 16d5540

Please sign in to comment.