Puppeteer on click does not work neither triggers exception

38 Views Asked by At

It happens that through puppeteer and dart I'm trying to access this url https://www.walmart.com/ip/seort/688414897?offerId=1C77C470095B4DFAB58D48BB4396DC5A and click on the button with class="bg-transparent bn lh-solid pa0 sans-serif tc underline inline-button black pointer f6". After clicking this button, I should I have access to an lateral overlay layout with an input with class="w_V2kW". But it seems that the click trigger is not having any effect.

Apparently a very straightforward operation on puppeteer, however I tried everything, giving long timeouts, using focus(), etc...last thing I tried was:

          selector = 'button[aria-label*=", "][class="bg-transparent bn lh-solid pa0 sans-serif tc underline inline-button black pointer f6"]';

          await myPage.click(selector);
          await myPage.waitForTimeout(6000);

          await myPage.click('input[class="w_V2kW"]');

I really don't know what to do anymore nor how to know the cause/debbug this...

Thanks in advance!

0

There are 0 best solutions below