You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is an issue for new Safari 11.1 browser and later that regular login parameters cannot be processed in format: "http(s)://user:pass@host".
There seems to be a way for bypassing this by sending customized request header in Selenium using WebDriverBackedSelenium class.
selenium = new WebDriverBackedSelenium(driver, "http://:@");
selenium.start("addCustomRequestHeader=true");
selenium.addCustomRequestHeader( "Authorization","Basic "+"YWRpZGFzOmFkaWRhczEyMyM=" );
Is theere a way to do this in PHP/Codeception? Since there is no WebDriverBackedSelenium class in codeception, is there some alternative to this which can be used, or some other way of doing this in efficient way?
The text was updated successfully, but these errors were encountered:
the addCustomRequestHeaders capability was part of obsolete Selenium RC and is not part of Selenium WebDriver. There is long-standing policy of Selenium project to not manipulate the HTTP protocol itself by Selenium - only focus on emulating user actions. So if you really need this, you must take another approach, like BrowserMob proxy, browser extension etc. See eg. SeleniumHQ/selenium-google-code-issue-archive#2047
Currently there is an issue for new Safari 11.1 browser and later that regular login parameters cannot be processed in format: "http(s)://user:pass@host".
There seems to be a way for bypassing this by sending customized request header in Selenium using WebDriverBackedSelenium class.
selenium = new WebDriverBackedSelenium(driver, "http://:@");
selenium.start("addCustomRequestHeader=true");
selenium.addCustomRequestHeader( "Authorization","Basic "+"YWRpZGFzOmFkaWRhczEyMyM=" );
Is theere a way to do this in PHP/Codeception? Since there is no WebDriverBackedSelenium class in codeception, is there some alternative to this which can be used, or some other way of doing this in efficient way?
The text was updated successfully, but these errors were encountered: