Adjust "Перевести" button tap position in PayByPhoneScript to the lower part of the button, avoiding the "за друга" badge. Update debug logs accordingly.
This commit is contained in:
parent
373d103212
commit
f696e816e2
@ -174,10 +174,13 @@ void PayByPhoneScript::makePayment(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const int transferTapX = transferBtn.x1() + transferBtn.width() / 4;
|
// Тапаем в нижнюю часть кнопки (там, где визуально надпись "Перевести"),
|
||||||
qDebug() << "[PayByPhone] Tapping 'Перевести' at" << transferTapX << "," << transferBtn.y()
|
// ниже бейджа "за друга" (он заканчивается на y≈140).
|
||||||
<< "(avoiding 'за друга' badge on right)";
|
const int transferTapX = transferBtn.x();
|
||||||
AdbUtils::makeTap(deviceId, transferTapX, transferBtn.y());
|
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);
|
QThread::msleep(2000);
|
||||||
|
|
||||||
// 2. Ждём экран "Платежи и переводы" с полем "Телефон получателя"
|
// 2. Ждём экран "Платежи и переводы" с полем "Телефон получателя"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user