google-chrome-devtools

Wrong (maxTouchPoints) and ('ontouchstart' in document) in Chrome mobile emulation mode

早过忘川 提交于 2020-12-04 07:57:20
问题 I use a touchscreen device detection like this: if (window.navigator.maxTouchPoints || 'ontouchstart' in document) // handle as mobile device else // handle as desktop When I change the screen in Chrome mobile emulation the result of both maxTouchPoints and 'ontouchstart' in document is unpredictable. For one and same emulated screen it may return maxTouchPoints equals to 0 or 1, and 'ontouchstart' in document equals to true or false . So, I cannot really on this check. Could you recommend a

How to set max viewport in Puppeteer?

给你一囗甜甜゛ 提交于 2020-11-30 04:17:13
问题 When I run a new page, I must specify size of the viewport using the setViewport function: await page.setViewport({ width: 1920, height: 1080 }) I want use max viewport. How can I make the viewport resizable according to the window size? 回答1: I may be very late on this. Nevertheless for others, try: const browser = await puppeteer.launch({defaultViewport: null}); Set the defaultViewport option to null as above to disable the 800x600 resolution. It takes the max resolution then. 回答2: You can

How to find the $cdc_ (chromedriver params) in website?

谁都会走 提交于 2020-11-25 03:46:24
问题 About this post: Can a website detect when you are using selenium with chromedriver? Some website could detect chromedriver using $cdc_xxxxxxxxxx. I have ever found this parameter on website through Chrome DevTools (maybe document,network,etc.) when I used selenium to open browser. But I forgot where it appeared. I want to know how the website get this parameters of chromedriver? 回答1: The question Can a website detect when you are using selenium with chromedriver? doesn't mentions about $cdc

How to find the $cdc_ (chromedriver params) in website?

女生的网名这么多〃 提交于 2020-11-25 03:43:58
问题 About this post: Can a website detect when you are using selenium with chromedriver? Some website could detect chromedriver using $cdc_xxxxxxxxxx. I have ever found this parameter on website through Chrome DevTools (maybe document,network,etc.) when I used selenium to open browser. But I forgot where it appeared. I want to know how the website get this parameters of chromedriver? 回答1: The question Can a website detect when you are using selenium with chromedriver? doesn't mentions about $cdc

How to find the $cdc_ (chromedriver params) in website?

爷,独闯天下 提交于 2020-11-25 03:42:11
问题 About this post: Can a website detect when you are using selenium with chromedriver? Some website could detect chromedriver using $cdc_xxxxxxxxxx. I have ever found this parameter on website through Chrome DevTools (maybe document,network,etc.) when I used selenium to open browser. But I forgot where it appeared. I want to know how the website get this parameters of chromedriver? 回答1: The question Can a website detect when you are using selenium with chromedriver? doesn't mentions about $cdc