Hello, i wanted to remove an image(or set it as not visible), before a screenshot, i did this script, but isnt working:
await page.locator('body > div.wrapper > img').evaluate(element => element.style.display = 'block;');
It doesnt give an error, it just dont do anything
Hello, i wanted to remove an image(or set it as not visible), before a screenshot, i did this script, but isnt working:
await page.locator('body > div.wrapper > img').evaluate(element => element.style.display = 'block;');
It doesnt give an error, it just dont do anything