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;
|
||||
}
|
||||
|
||||
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. Ждём экран "Платежи и переводы" с полем "Телефон получателя"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user