Enable Postman Interceptor on Chrome incognito - selenium-webdriver

I've installed on Chrome the Postman Interceptor extension and I'm using it along the Postman desktop app on Mac OS.
I am running multiple sessions with selenium webdriver and I want to produce a log of all the requests.
Since selenium webdriver launches Chrome in incognito mode I would like to enable the Interceptor (which I have tested successfully just browsing with Chrome) also for the incognito mode. How can I do it?

Related

Issue with running selenium scripts in headless browser in gitlab CI beacuse of chrome extension involvement

I have an automation test suite which includes the browser extension loading. I want to run these tests in gitlab but as far as I read, the headless chrome does not support the chrome extensions.
I can't use mozilla firefox as the extension is not supported by firefox. Please suggest me a way so that I can run my tests with the extension in gitlab CI.
Thanks in advance!
While looking for the solutions, I read about xvfb virtual display. I don't know what is it or will it work in gitlab. I tried but it did not work.

How to debug React App from VSCode with enabled extensions in the browser

I have React app running locally on localhost:3000. I configured VSCode to debug app in MS Edge and Google Chrome also. I can launch browsers from VSCode debugger. Sometimes I launch Chrome and sometimes Edge. But the problem is with browser extensions. Launched browsers have resetted settings, and no extensions are present, for example React Developer Tools. I want to inspect React Components from this extension. Now I must launch manually browser card with url localhost:3000 and inspect components, but I haven't debugger attached for inspecting breakpoints in the same time.

how to install Interceptor at Postman MAC app?

I followed the following steps:
1 Install Postman from the Chrome Web Store (if you don't have it already!)
2 Install the Interceptor extension.
3 Open Postman.
4 Click on the Interceptor icon in the toolbar and switch the toggle to “on”
5 Browse your app or your website and monitor the requests stream in.
I see the Interceptor at the Chrome Postman, however I cant install it at MAC app. I also tried restarting my computer after the install but it dint work.
I have latest version of CHrome and Postman.
Postman: Version 4.7.0 (4.7.0)
Chrome: Version 53.0.2785.
Is there any other step need for MAC app Postman?
Postman has made it easy to install Interceptor in the native app. First, check if you are in the latest version of the app (Settings > About). If yes, then click on "Start lesson" and that will guide you get the "Interceptor connected"
Read more: https://learning.postman.com/docs/postman/sending-api-requests/interceptor/#installing-interceptor
Not sure about the Mac native app but Linux native app (v.4.9.3) can use cookies only when Google Chrome is started (even if it has Interceptor disabled).

XHR request hangs in safari on el capitan

I have a wierd situation that we cannot figure out or make sense of.
We have a web application. If i use chrome on osx it works. If i use safari and hit our QA environment it works. If i run safari on Mavericks against my local dev machine it works. If i run safari on el capitan against my local dev machine to does NOT work.
What we see is that the browser is able to directly download assets but xhr requests sit there and spin indefinitely. One of the examples is were using angular with routing and when angular makes the xhr for the html page it sits there and hangs. However if i just put the same url into the browser itself it pulls down the html just fine.
This has stumped us. It worked fine in Mavericks, it works fine in our QA environment. We have turned off all firewalls on the local dev machines. The iis logs on the local dev never see the request for the html file. Chrome on el capitan works just fine.
Does anyone have any ideas?

Is it possible to run protractor test with the head on a remote browser?

Can we run the test on our server and display the progress using the users browser ,So our servers have no graphics drivers, we run headless.
Is it possible to run with the head on a remote browser ?
There is PhantomJS but with Protractor is buggy and a dead-end.
You can still use Chrome & Firefox headless through docker-selenium or, if you don't like Docker you can do it yourself with ubuntu-headless sample. Both solutions provide Chrome & Firefox by using Xvfb even though there is no real DISPLAY.
You can also use selenium in the cloud through a paid service like SauceLabs or BrowserStack.
In OSX and without docker you can try http://xquartz.macosforge.org/landing/
In OSX and without docker you can also try Mac OSX selenium headless solution

Resources