Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

Mobile PINSentry not being selected during login #49

Closed
ryanwwhittaker opened this issue May 18, 2021 · 7 comments
Closed

Mobile PINSentry not being selected during login #49

ryanwwhittaker opened this issue May 18, 2021 · 7 comments

Comments

@ryanwwhittaker
Copy link

Hi,
I'm trying to connect using 'motp' however during login (and when showing browser - ie. no-headless) I can see that the Mobile PINSentry tab is not being selected on the screen that appears after the initial screen. I am supplying my surname and membership no. in that first screen.
Running this on a Mac and opening in Chromium.
Launching in terminal within VS Code.

Here is the trace in terminal:
Error: Node is either not visible or not an HTMLElement
at ElementHandle._clickablePoint (/Users/ryan/VSCode/barclayscrape/node_modules/puppeteer/lib/cjs/puppeteer/common/JSHandle.js:329:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ElementHandle.click (/Users/ryan/VSCode/barclayscrape/node_modules/puppeteer/lib/cjs/puppeteer/common/JSHandle.js:390:26)
at async DOMWorld.click (/Users/ryan/VSCode/barclayscrape/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:277:9)
at async Object.exports.fillFields (/Users/ryan/VSCode/barclayscrape/node_modules/barclayscrape/utils.js:33:5)
at async Session.loginMOTP (/Users/ryan/VSCode/barclayscrape/node_modules/barclayscrape/session.js:65:5)
at async auth (/Users/ryan/VSCode/barclayscrape/node_modules/barclayscrape/barclayscrape.js:222:5)
at async Command. (/Users/ryan/VSCode/barclayscrape/node_modules/barclayscrape/barclayscrape.js:30:14)

Any ideas?

Thanks
Ryan

@carpii
Copy link
Contributor

carpii commented May 20, 2021

Are you a new user, or was this working for you previously and has suddenly stopped working?

@ryanwwhittaker
Copy link
Author

Hi - I had this working a few months ago before Barclays changed things up. I've now downloaded the latest of all the software elements and can't seem to get it working. It seems that despite running with 'motp' the page doesn't navigate to the mobile pin sentry screen to accept the pinsentry code I supply via the terminal.

@carpii
Copy link
Contributor

carpii commented May 20, 2021

@ryanwwhittaker I cant reproduce the error you're seeing (even when using --motp), although I did get a different error earlier (due to Barclays showing an interim fraud advisory page - this too was a one off which I cant now reproduce).

Are you seeing this error every time, or intermittently?

Does your Barclays login have a mix of Personal and Business accounts?

@ryanwwhittaker
Copy link
Author

I am seeing this issue every time I try.
I only have Personal accounts (some are Joint accounts).

I wonder if something not quite right with Puppeteer or Chromium.

@carpii
Copy link
Contributor

carpii commented May 25, 2021

The line numbers in the error message suggest you might not be using the latest version. Make sure your git branch is fully up to date as there were some changes in February to handle the tab selection

@russss
Copy link
Owner

russss commented May 25, 2021

Oh, I forgot to publish those changes to npm. I've now done so (version 3.0.17), so make sure you're using that if you're installing the package.

@ryanwwhittaker
Copy link
Author

Looks like the publishing did the trick and I could now download statements.
Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants