From 281458483125fa4855103d702a3adf50445a156e Mon Sep 17 00:00:00 2001 From: cheetah Date: Fri, 24 Feb 2023 17:33:45 +0100 Subject: [PATCH] fixed eMessage crap --- types/connectors/eMessagePuppeteerConnector.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/types/connectors/eMessagePuppeteerConnector.js b/types/connectors/eMessagePuppeteerConnector.js index 79c42dc..07bd0da 100644 --- a/types/connectors/eMessagePuppeteerConnector.js +++ b/types/connectors/eMessagePuppeteerConnector.js @@ -43,12 +43,14 @@ class eMessagePuppeteerConnectorBase extends Connector { this.connectorRegistry.reportState(msg, UUID, 'puppettering') const page = await browser.newPage() await page.goto('https://ruf.emessage.de/') - + await sleep(1e3) + await page.reload() + const pagerNumberInput = 'input[formcontrolname="eID"]' await page.waitForSelector(pagerNumberInput) await page.type(pagerNumberInput, identifier) await sleep(1e3) - + const validatePagerNumberButton = 'form > div:nth-child(2) > button:nth-child(1)' await page.waitForSelector(validatePagerNumberButton) await page.click(validatePagerNumberButton) @@ -163,4 +165,4 @@ module.exports = { eMessagePuppeteerConnectorBase, eMessagePuppeteerConnectorCityruf, eMessagePuppeteerConnectorTwoWays -} \ No newline at end of file +}