Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scrape-img-qr.ts #218

Merged
merged 2 commits into from
May 24, 2021
Merged

Update scrape-img-qr.ts #218

merged 2 commits into from
May 24, 2021

Conversation

AlanMartines
Copy link
Contributor

@AlanMartines AlanMartines commented May 22, 2021

Fix click to reload qr code

Fixes # .

Changes proposed in this pull request

//const buttonReload = selectorUrl.querySelector('[role="button"]') as HTMLButtonElement;
const buttonReload = selectorUrl.querySelector('button');

Fix click to reload qr code
'[role="button"]'
) as HTMLButtonElement;
//const buttonReload = selectorUrl.querySelector('[role="button"]') as HTMLButtonElement;
const buttonReload = selectorUrl.querySelector('[data-testid="refresh-large"]');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is simpler:

Suggested change
const buttonReload = selectorUrl.querySelector('[data-testid="refresh-large"]');
const buttonReload = selectorUrl.querySelector('button');

Fix click reload qrcode
@edgardmessias edgardmessias merged commit a2104e4 into wppconnect-team:master May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants