Skip to content

Commit

Permalink
fix: Button Reload
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalan7 committed Jun 3, 2021
1 parent ef9dc78 commit ae20c9f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/api/helpers/scrape-img-qr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ import { ScrapQrcode } from '../model/qrcode';
export async function scrapeImg(page: Page): Promise<ScrapQrcode | undefined> {
let click = await page
.evaluate(() => {
const selectorImg = document.querySelector('canvas');
const selectorUrl = selectorImg.closest('[data-ref]');
const buttonReload = selectorUrl.querySelector(
'[role="button"]'
) as HTMLButtonElement;
const buttonReload = document.querySelector('button');
if (buttonReload != null) {
buttonReload.click();
return true;
Expand Down

0 comments on commit ae20c9f

Please sign in to comment.