Selenium webdriver
is not able to pull up the chrome dev tools
. From what it looks like puppeteer
could do this, but will it give me a way to save the interactive timeline report? Can puppeteer
be run in a headfull mode? in an incognito
tab? I saw the developers page but no specific examples
-
I don't have a full answer, so just adding a comment. I've used this to run puppeteer headfull. To run puppeteer in headfull way, set the option "puppeteer.launch({headless: false})". This is in the API docs: pptr.dev/… The docs also show how to run in incognito.– Lee JensenCommented Feb 4, 2020 at 20:56
-
Is there a reason behind this that prevents you to use performance testing tools like jmeter instead?– MoroCommented Feb 5, 2020 at 6:20
-
@Moro Yes, I am looking at interactions from the time I click on the Mouse button for a login until the home page is rendered fully. Performance tab on Chrome Dev tools after recording has vertical green bars to show you mouse up mouse down etc, blue horizontal bars to show when the apis got started and ended, screenshots to confirm page has rendered etc. Can Jmeter do something like this? If so please let me know if there is a listener for this– beegee AssemCommented Feb 5, 2020 at 16:20
-
Any performance testing tool can measure page loading times and generate timelines, jmeter was just an example. I do not think Jmeter allows you to capture mouse events, however it can take Selenium scripts as input and in them you can code some mouse interactions. Again, I do not understand why would you need mouse interaction for performance testing, when you can simply record the http requests and use them in your script.– MoroCommented Feb 6, 2020 at 9:15
-
1Not sure about the details but I think Selenium 4 can work with dev tools.– Mate MršeCommented Mar 6, 2020 at 7:56
|
Show 2 more comments
1 Answer
Yes, Puppeteer allows creation of "incognito" browser contexts with browser.createIncognitoBrowserContext()
method. "Incognito" browser contexts don't write any browsing data to disk. and these sessions are known as Browser Contexts.