From f696e816e24e66cae2a5d79aa712c925e0456eb3 Mon Sep 17 00:00:00 2001 From: slava Date: Thu, 14 May 2026 21:16:16 +0700 Subject: [PATCH] =?UTF-8?q?Adjust=20"=D0=9F=D0=B5=D1=80=D0=B5=D0=B2=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=B8"=20button=20tap=20position=20in=20`PayByPhon?= =?UTF-8?q?eScript`=20to=20the=20lower=20part=20of=20the=20button,=20avoid?= =?UTF-8?q?ing=20the=20"=D0=B7=D0=B0=20=D0=B4=D1=80=D1=83=D0=B3=D0=B0"=20b?= =?UTF-8?q?adge.=20Update=20debug=20logs=20accordingly.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/ozon/PayByPhoneScript.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/android/ozon/PayByPhoneScript.cpp b/android/ozon/PayByPhoneScript.cpp index a8e739f..e8ef492 100644 --- a/android/ozon/PayByPhoneScript.cpp +++ b/android/ozon/PayByPhoneScript.cpp @@ -174,10 +174,13 @@ void PayByPhoneScript::makePayment( return; } - const int transferTapX = transferBtn.x1() + transferBtn.width() / 4; - qDebug() << "[PayByPhone] Tapping 'Перевести' at" << transferTapX << "," << transferBtn.y() - << "(avoiding 'за друга' badge on right)"; - AdbUtils::makeTap(deviceId, transferTapX, transferBtn.y()); + // Тапаем в нижнюю часть кнопки (там, где визуально надпись "Перевести"), + // ниже бейджа "за друга" (он заканчивается на y≈140). + const int transferTapX = transferBtn.x(); + const int transferTapY = transferBtn.y1() + transferBtn.height() * 4 / 5; + qDebug() << "[PayByPhone] Tapping 'Перевести' at" << transferTapX << "," << transferTapY + << "(below 'за друга' badge)"; + AdbUtils::makeTap(deviceId, transferTapX, transferTapY); QThread::msleep(2000); // 2. Ждём экран "Платежи и переводы" с полем "Телефон получателя"