How to click on specific part of element puppeteer
问题 Say I have an element that's 500 pixels wide, called 'selector'. How would I go about, for example, clicking on pixel 400? According to the puppeteer docs, .hover() will hover over the middle of the element. And when I tested it using code like const selector = await page.$('selector'); await selector.hover(); await selector.click(); sure enough, it clicked right on pixel 250. So clearly, the code exists to make this happen. I looked through the puppeteer docs, but couldn't find the source