Lets Connect Selenium To Already Opened Browser | Save Time

Sdílet
Vložit
  • čas přidán 2. 03. 2024
  • Save time while automating new scripts or fixing a broken script
    Book a session with me @ topmate.io/gauravkhurana
    Connect with me @ bit.ly/khuranagaurav
    bit.ly/myshortcuts
    Want to learn AzureDevOps
    bit.ly/azuredevopsplaylist
    Want to learn Cloud and AI
    bit.ly/aiandcloud

    Automation
    bit.ly/learn_automation
    bit.ly/automationbasics
    bit.ly/automationmusthave
    bit.ly/firstwebautomation
    bit.ly/codecheckin
    Use of AI for testers
    bit.ly/chatgptfortesters
    API Testing
    bit.ly/API_Testing
    30 Days of postman
    bit.ly/30daysofpostman
    Test Data in Testing
    bit.ly/testdataintesting
    Referral
    bit.ly/tipsforreferral
    Github
    bit.ly/improveyourgithubprofile
    Selectorshub
    bit.ly/XPATH
    Screenshot Tools
    bit.ly/ss_tools
    Time Management
    bit.ly/manageyourday

    My favorite Screenshot Tools ( bit.ly/ss_tools)
    Capture
    bit.ly/ss_tool1
    Sharex
    bit.ly/ss_tool2
    wink
    bit.ly/ss_tool3
    Book Recommendations - Growth Driven testing
    amzn.to/42S7EBG
  • Věda a technologie

Komentáře • 8

  • @Udzial
    @Udzial  Před 4 měsíci

    github.com/gauravkhuraana/selenium/blob/master/src/test/java/remoteDebugging.java this is the link to the program
    here is the command to start the browser
    chrome.exe --remote-debugging-port=9222 --no-first-run --no-default-browser-check --user-data-dir="C:\Users\gauravkhurana\AppData\Local\Google\Chrome\User Data"
    change gauravkhurana to your user

    • @chandrashekhar6883
      @chandrashekhar6883 Před 4 měsíci +1

      Bro it's for local
      And browser specific
      Will it work in grid ,ci,cd env
      There ip address will change

    • @Udzial
      @Udzial  Před 4 měsíci

      @@chandrashekhar6883
      It can help locally and save a lot of time, you can try for other browsers as well.
      Concept is important to learn, it even works with playwright too
      It can work in CI environment, you can start the browser programmatically and then selenium will connect to it.
      We mention localhost which refer to the local system and that IP address remains constants always i.e. 127.0.0.1
      The most common use case is to write new scripts and fixing bugs, but it can be tried for other things as well.. like in pipeline. All of what you said is doable but we should try all of that in pipeline if we are stuck with MFA etc problems.

    • @chandrashekhar6883
      @chandrashekhar6883 Před 4 měsíci +1

      Agree

    • @sumitsagar6072
      @sumitsagar6072 Před 4 měsíci +1

      Bro.. same question my teammate asked me and I told her that no it's not possible... Glad that I got this video.. can save lot of time.. thank you.. keep up the good work🎉

    • @Udzial
      @Udzial  Před 4 měsíci

      Thank you @@sumitsagar6072 Feedback like this are very motivating to create new content.
      do subscribe and share this channel and let me know if you want content on some particular topic

  • @sharathchandran7294
    @sharathchandran7294 Před 3 měsíci

    @Udzial - awesome work, it's really helpful ! Thanks for sharing this. Do you have command for Mac to start browser?

    • @Udzial
      @Udzial  Před 3 měsíci

      try this @sharathchandran7294 and replace yourUsername with your user
      "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --remote-debugging-port=9111 --no-first-run --no-default-browser-check --user-data-dir="/Users/YourUsername/Library/Application Support/Google/Chrome"