From ee46c2b030d9806a6f7e1fac06cc8d471aed266f Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 16 Apr 2019 12:07:59 +0200 Subject: [PATCH] wait for opponent label to appear in sas dialog --- src/usecases/verify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usecases/verify.js b/src/usecases/verify.js index b08f727553..233bf4f954 100644 --- a/src/usecases/verify.js +++ b/src/usecases/verify.js @@ -53,7 +53,7 @@ module.exports.startSasVerifcation = async function(session, name) { module.exports.acceptSasVerification = async function(session, name) { await assertDialog(session, "Incoming Verification Request"); - const opponentLabelElement = await session.query(".mx_IncomingSasDialog_opponentProfile h2"); + const opponentLabelElement = await session.waitAndQuery(".mx_IncomingSasDialog_opponentProfile h2"); const opponentLabel = await session.innerText(opponentLabelElement); assert(opponentLabel, name); // click "Continue" button