diff --git a/2fa_bot.py b/2fa_bot.py index ed93ea0..a2c8ddf 100644 --- a/2fa_bot.py +++ b/2fa_bot.py @@ -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( diff --git a/tests/test_docker_compose_ports.sh b/tests/test_docker_compose_ports.sh index 5b35cca..9c43401 100644 --- a/tests/test_docker_compose_ports.sh +++ b/tests/test_docker_compose_ports.sh @@ -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"