fixed eMessage crap

master
cheetah 2 years ago
parent e786715ab3
commit 2814584831

@ -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
}
}

Loading…
Cancel
Save