I want to support window authentication pop up for login to the application using Protractor using chrome headless browser. Is there any way in which I can make it work?
I have already tried:
Chrome authentication extensions - https://www.npmjs.com/package/authenticator-browser-extension
Loading URL in the below format:
http://username:password#url.com which did not work out.
Related
I have created a web extension that uses the tabCapture API to record the browser navigation. This extension stops working (i.e., the browser is not recorded) when using a headless browser (i.e., when using the --headless argument and an automated test with Selenium).
Is there any option to use the tabCapture API in a headless browser?
here's the situation: I load a website A in incognito mode using Selenium Chrome Webdriver. In this website there is a iframe loading information from website B. Chrome Incognito mode blocks the iframe contents because treats it as a 3rd party cookie.
If I allow the cookies from the website B the conents of the iframe show up. If I don't use the incognito mode the contents also show up. However, after manually allowing cookies in Chrome setting it only works during this session. And I need the incognito mode in other tests so I don't want to change configuration between the tests.
Is there a way to set up the Webdriver to allow the cookies from the 3rd party website?
I want to automate an application for an upload process with selenium.Therefore I am using geckodriver. Right now I am doing the login site headless but I want to do the login by the user and then change to headless. Is there a way to do that or at least a work around?
There is no way to do that using the same browser instance... The headless flag is a setting passed to the browser on startup and there is no way to dynamically change that.
If the site uses cookie-based authentication, here is an alternate approach:
login with browser in normal (GUI) mode
export saved cookies
instantiate a new browser in headless mode
navigate to the site again with the headless driver
add saved cookies to the new headless driver
... at that point, you can navigate to an authenticated page. You should be "logged in" since you are re-using the cookies from the original browser session.
I am unable to login using chrome browser but it works perfectly in Firefox. I guess yii session is not working in chrome? may be?
Sessions are independent from browser - they are stored on server. Browser has access only to session id which he gets from server trough cookie or as link parameter
I want to port an extension from Chrome to Safari. Chrome extension is using Chrome.cookies api http://code.google.com/chrome/extensions/cookies.html, is there any similar method for safari extension?
Such API is available for plugins only. The only workaround is to inject script then send document.cookie back to background page