Selenium 4 has really brought some cool enhancements. Thanks for sharing Naveen. I will try to implement the same in my project
@naveenautomationlabs4 жыл бұрын
You are welcome 😊
@souravpoddar10503 жыл бұрын
Hi Naveen, this solution does not work for Incognito mode of Chrome browser. If you login to chrome using username & password manually for the 1st time, chrome will store the username and passwords in cache and it will always retrieve those values if chrome is launched the 2nd or subsequent times normally or via automation. Issue is received only when chrome runs at Incognito modes. Could you please check for incognito modes if this solution will work or not? FYI - For me, its not working!
@rgup83313 жыл бұрын
@Naeen why this is not working when redirecting to another url when we hit the application URL
@sarins.r4978 Жыл бұрын
Is similar option available for C# selenium
@limamathew77943 жыл бұрын
Hi,Does selenium c# has the same features?.
@maheshvlogs41383 жыл бұрын
Is this now available for other browsers like msedge, safari, Firefox etc...??
@PriyankaSingh-yz7sr2 жыл бұрын
Can we use this for selenium version 4.0.0-rc-2/4.0.0 ? Not working for this version..
@sreereshvkm7264 жыл бұрын
Hi Naveen.Thanks for sharing. Passing credentials over url is the only an option in selenium 3? I did not used selenium 4 at all. Could you please share a video, if selenium 4 has any changes in api compare to selenium 3.
@sayedabrin6 ай бұрын
Hi Naveen, It was great session.Currently i am facing one issue related to certifiacte authorization pop up , Which is selenium not supporting .Could you please tell how to handle this issue .
@ashishautomaionpracticelab15553 жыл бұрын
Hi Naveen , Can we use this Selenium chrome dev tool API with Selenium 3.14 version ?
@helenpepper4723 жыл бұрын
Thank you very much for all your videos!!
@seshagirikamalakaran81742 жыл бұрын
This works fine for Basic Authentication but failing for OAuth2 + PKCE Authentication. Even though the credentials are set and shared we are still getting popup window. But we can see that the values are being set in headers and passed. Not sure because of PKCE's way of implementation using Challenger Code is not permitting this approach. Do we have solution for it?
@siddanthtantry66093 жыл бұрын
Hey Naveen, I tried this, and it doesnt work for my project. (It works with the sample website used in the video)
@ishanagarwal55743 жыл бұрын
Hi sir... Is there any solution for C#?
@hrushikeshsahoo25832 жыл бұрын
This method doesn't work if we run from azure Devops using pipeline... Any solution for this??
@gangavarapuravali51444 жыл бұрын
Hi..Can you do videos on Tosca automation testing tool..
@srinukusumanchi8447Ай бұрын
@naveen How to check if windows Authenticator exists or not (If exists I will enter credentials else I won’t pass credentials)
@sudiptapal20252 жыл бұрын
I am using Selenium version 4.1.2. Could anyone please let me know how to handle authentication pop-up? As the above mentioned code isn't working ☹️ Thanks in advance!
@lipsadas5503 жыл бұрын
Hi Naveen. All your videos are great. Have been following them since long. Want to know how to handle random or annoying popups that pop dynamically and we need to kill them. If video is available it would be nice of you to reply with the URL
@sumitsaha97823 жыл бұрын
Hi Naveen, getting the compilation error on the line: devTools.send(Network.enable(Optional.empty(),Optional.empty(),Optional.empty())); Error message: The method enable(Optional, Optional, Optional) in the type Network is not applicable for the arguments (Optional, Optional, Optional) Maven Dependency used: 4.0.0-alpha-7 -------------------------------------------------- CODE ---------------------------------------------------------------------- import java.util.HashMap; import java.util.Map; import java.util.Optional; import org.apache.commons.codec.binary.Base64; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; import org.openqa.selenium.devtools.v87.network.Network; import org.openqa.selenium.devtools.v87.network.model.Headers; import io.github.bonigarcia.wdm.WebDriverManager; public class BasicAuthenticationHandling { private static final String username ="admin"; private static final String password ="admin"; public static void main(String[] args) { WebDriverManager.chromedriver().setup(); WebDriver driver = new ChromeDriver(); DevTools devTools = ((ChromeDriver)driver).getDevTools(); devTools.createSession(); devTools.send(Network.enable(Optional.empty(),Optional.empty(),Optional.empty())); //Send auth header: Map headers =new HashMap(); String basicAuth = "Basic " + new String(new Base64().encode(String.format("%s:%s", username, password).getBytes())); headers.put("Authorization",basicAuth); devTools.send(Network.setExtraHTTPHeaders(new Headers(headers))); driver.get("the-internet.herokuapp.com/basic_auth"); } }
@remyamohan79032 жыл бұрын
Hi naveen, I tried this in my project and I could get past the login. But then in landing page when I try navigate to next page it again gives me the pop up. Any solution for this?
@prajakta12113 жыл бұрын
Thanks for your channel and your videos.its really helpful Hello sir what are the new features added in selenium
@krishnasm52693 жыл бұрын
Hi Naveen, Thanks for the tutorial, can you please suggest any approach how to handle Authentication popups for Safari browser.? Thanks in advance
@ExuberantSingh014 жыл бұрын
Hello Sir ! I have been watching your videos since last month regarding manual testing & Software testing . And I am thankful that you are giving us honest idea about industry & all . I want to start my career in testing . So I want to learn Manual & software testing and other tools . Please suggest me some online course from where I can learn ... Getting confused as there are so many courses online ... Currently due to some reason I can't leave my home town which is near to chandigarh .. Please suggest me from where I can learn these courses . 1-1 training I would like to prefer... Thanks
@gauravsikka12653 жыл бұрын
Hi Naveen Can I do the same thing in python? Does Devtool API supports python?
@jadhav16321013 жыл бұрын
Hello Sir I have gone through code and same used to our internal companies application but it just refreshed URL and do not post any results of successful authentication
@harisompalli92042 жыл бұрын
Hi Naveen, Please can you make one video for launching Edge browser in IE Mode using selenium 4 Java? Thanks
@prashantn19704 жыл бұрын
Hi Naveen- getting error as he method enable(Optional, Optional, Optional) in the type Network is not applicable for the arguments (Optional, Optional, Optional) for this line of code devTools.send(Network.enable(Optional.empty(), Optional.empty(), Optional.empty()));
@technicalthings37412 жыл бұрын
I am also facing same issue..Did you resolved it ?
@prashantn19702 жыл бұрын
@@technicalthings3741 nope
@technicalthings37412 жыл бұрын
Is there any way to handle that scenario?
@achutg6328 Жыл бұрын
Is this resolved ?
@debiprasaddas64274 жыл бұрын
Great I will try to implement this in my project application.. Thanks
@sanjeevinikeerthi20533 жыл бұрын
Hi Naveen, How can I make it work for protractor ? I am not able to pass username and password for headless chrome. Can you please help me with that?
@nathanh81953 жыл бұрын
Doesn't work for me, my error "Exception in thread "main" java.lang.Error: Unresolved compilation problem: The method enable(Optional, Optional, Optional) in the type Network is not applicable for the arguments (Optional, Optional, Optional) " Any assistance would be highly appreciated
@sunilkumar.sukesan3 жыл бұрын
Try Optional.empty()
@subhankarbagchi69053 жыл бұрын
@@sunilkumar.sukesan This worked. Thanks.
@technicalthings37412 жыл бұрын
I am aslo facing same issue ..How to resolved?
@achutg6328 Жыл бұрын
Is it resolved?
@nehachhabadia90524 жыл бұрын
Hi Sir, Could you please help us with basic authentication pop up for robotframework as well it would help me lot
@rajatshandilya12034 жыл бұрын
Hey Naveen, Can you make a tutorial video on chrome or any browser dev tools and how can we use them in web testing ?
@naveenautomationlabs4 жыл бұрын
New chrome dev tools series coming soon.
@rajatshandilya12034 жыл бұрын
@@naveenautomationlabs Great
@alikhanmagomedaliev55003 жыл бұрын
Could you please cover this topic with Python?
@ManpreetSingh-qz8bg4 жыл бұрын
URL Basic auth works for all browsers except Safari (Mac Safari, iPhone and iPad). We really need this for Safari.