Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion 2fa_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@
IGNORED_TITLE_KEYWORDS = (
"authenticating",
)
INPUT_CLICK_POSITION = (0.50, 0.62)
# Current IBKR Gateway TOTP prompts place the code field in the upper half of
# the compact dialog. Keep the click centered on the text field instead of the
# button/link area below it.
INPUT_CLICK_POSITION = (0.50, 0.40)
# =================================================

logging.basicConfig(
Expand Down
2 changes: 2 additions & 0 deletions tests/test_docker_compose_ports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ grep -Fq ' - JAVA_HEAP_SIZE=${JAVA_HEAP_SIZE:-512}' "$compose_file"
grep -Fq ' - IB_GATEWAY_PARALLEL_GC_THREADS=${IB_GATEWAY_PARALLEL_GC_THREADS:-2}' "$compose_file"
grep -Fq ' - IB_GATEWAY_CONC_GC_THREADS=${IB_GATEWAY_CONC_GC_THREADS:-1}' "$compose_file"
grep -Fq ' - ACCEPT_API_FROM_IP=${ACCEPT_API_FROM_IP:?Set ACCEPT_API_FROM_IP to your Cloud Run egress subnet or connector CIDR}' "$compose_file"

grep -Fq 'INPUT_CLICK_POSITION = (0.50, 0.40)' "$repo_dir/2fa_bot.py"