|
|
@ -43,12 +43,14 @@ class eMessagePuppeteerConnectorBase extends Connector {
|
|
|
|
this.connectorRegistry.reportState(msg, UUID, 'puppettering')
|
|
|
|
this.connectorRegistry.reportState(msg, UUID, 'puppettering')
|
|
|
|
const page = await browser.newPage()
|
|
|
|
const page = await browser.newPage()
|
|
|
|
await page.goto('https://ruf.emessage.de/')
|
|
|
|
await page.goto('https://ruf.emessage.de/')
|
|
|
|
|
|
|
|
await sleep(1e3)
|
|
|
|
|
|
|
|
await page.reload()
|
|
|
|
|
|
|
|
|
|
|
|
const pagerNumberInput = 'input[formcontrolname="eID"]'
|
|
|
|
const pagerNumberInput = 'input[formcontrolname="eID"]'
|
|
|
|
await page.waitForSelector(pagerNumberInput)
|
|
|
|
await page.waitForSelector(pagerNumberInput)
|
|
|
|
await page.type(pagerNumberInput, identifier)
|
|
|
|
await page.type(pagerNumberInput, identifier)
|
|
|
|
await sleep(1e3)
|
|
|
|
await sleep(1e3)
|
|
|
|
|
|
|
|
|
|
|
|
const validatePagerNumberButton = 'form > div:nth-child(2) > button:nth-child(1)'
|
|
|
|
const validatePagerNumberButton = 'form > div:nth-child(2) > button:nth-child(1)'
|
|
|
|
await page.waitForSelector(validatePagerNumberButton)
|
|
|
|
await page.waitForSelector(validatePagerNumberButton)
|
|
|
|
await page.click(validatePagerNumberButton)
|
|
|
|
await page.click(validatePagerNumberButton)
|
|
|
@ -163,4 +165,4 @@ module.exports = {
|
|
|
|
eMessagePuppeteerConnectorBase,
|
|
|
|
eMessagePuppeteerConnectorBase,
|
|
|
|
eMessagePuppeteerConnectorCityruf,
|
|
|
|
eMessagePuppeteerConnectorCityruf,
|
|
|
|
eMessagePuppeteerConnectorTwoWays
|
|
|
|
eMessagePuppeteerConnectorTwoWays
|
|
|
|
}
|
|
|
|
}
|
|
|
|