Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 committed Apr 10, 2024
1 parent f7a95be commit d40e484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/translater.cr
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ if still not work, kill the geckodriver process manually before try again."

start_time = Time.monotonic

print "Using "

if engine_list.includes? "Ali"
print "Ali "
spawn Ali.new(browser, content, debug_mode, chan, start_time, target_language)
Expand Down
2 changes: 1 addition & 1 deletion src/translater/youdao.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Translater

session.navigate_to("https://fanyi.youdao.com/index.html#")

if (ele1 = session.find_by_selector_timeout ".pop-up-comp.mask img.close", timeout: 1)
if (ele1 = session.find_by_selector_timeout ".pop-up-comp.mask img.close", timeout: 0.5)
ele1.click
end

Expand Down

0 comments on commit d40e484

Please sign in to comment.