Switch to a specific window out of 100 windows and validate it in

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

ความคิดเห็น • 98

  • @jyotimukherjee4347
    @jyotimukherjee4347 3 ปีที่แล้ว +4

    Hello Naveen Sir. Thank you from bottom of my heart🙏🙏🙏 for making such useful contents in ur channel through which we gained so much knowledge. Because of urs video in Java, selenium, api and all I got placed in one of the renowned company in UK as software tester after a 5 years of career gap. I was a manual tester in my previous company but learning thru urs video I got so much confidence in automation that helps me alot to face the interviews in automation profile. You are doing great sir...thank you once again sir🙏🙏🙏 . You are true gem🤩🤩. Hopefully you read this msg🙂

  • @kadalivaraprasad450
    @kadalivaraprasad450 3 ปีที่แล้ว +6

    No one will beat you on the Selenium concepts explanation

  • @alokranjan6831
    @alokranjan6831 ปีที่แล้ว

    Hi Naveen, I got interview qstn for you. "how to switch from one window pop to another window popup in selenium"

  • @sweetthirty2
    @sweetthirty2 ปีที่แล้ว

    sir i have mailed you one question please make a short video on that

  • @anitsarker4591
    @anitsarker4591 3 ปีที่แล้ว +3

    Hi Naveen, You are videos help us a lot. I have a little different question. We use MQs in between the webserver and app servers to log the communications. We use SSH client to fetch these logs and validate them. How can we automate this, because the logs are live and keep coming?

  • @kamaljayasawal6879
    @kamaljayasawal6879 3 ปีที่แล้ว +2

    Wonderfull Explanation..but only thing is no need to use list if we can do the same with set as well. 🙏

  • @nilstoned7593
    @nilstoned7593 3 ปีที่แล้ว +1

    I'm gonna try this with streams.

  • @aayushpatel3360
    @aayushpatel3360 3 ปีที่แล้ว +2

    something out of box question and you swiftly handle it Naveen. I say its incredible

  • @Udzial
    @Udzial 3 ปีที่แล้ว +2

    Well explained and good to create generic functions as you have explained to easily move between and title is a good assertion point!! Keep up the good work!!

  • @aishmagupta3160
    @aishmagupta3160 2 ปีที่แล้ว

    Hi, please guide me on the below query.
    Im an automation engineer (3.5+ Selenium + java, C# + Jenkins).
    For my career growth should i continue as Automation developer or move to DevOps? If yes then what could be the ideal experience to switch into DevOps?
    Will staying in Automation will be as same as DevOps in terms of profitability?
    Thank-you in Advance 😊

  • @rubalverma4930
    @rubalverma4930 2 ปีที่แล้ว

    HI Naveen while switching to next window in IE browser, am getting "NoSuchWindowException : unable to get browser " could you please help me out in this

  • @tusharrahane549
    @tusharrahane549 3 ปีที่แล้ว +2

    is it possible to run test cases daily on specific time without human intervention. Let me know how?

    • @manjugajre2939
      @manjugajre2939 3 ปีที่แล้ว +1

      Using Jenkins it is possible..

    • @tusharrahane549
      @tusharrahane549 3 ปีที่แล้ว

      @@manjugajre2939 How? kindly share any reference link

    • @irateinwit
      @irateinwit 3 ปีที่แล้ว +2

      Windows schedular ?

    • @mohammednasir457
      @mohammednasir457 3 ปีที่แล้ว

      @tushar, there are multiple ways to schedule your automated tests
      1) You can create a batch file and place that in the windows task scheduler
      2) You can create Jenkins pipeline and set the trigger
      3) You can create pipelines on Azure/AWS and schedule the trigger

  • @nirmalakshirsagar6462
    @nirmalakshirsagar6462 3 ปีที่แล้ว +1

    It's really helpful video naveen, but this question asked for fresher or experince person, pls mention that thing, for other helpful for

  • @mounika3006
    @mounika3006 2 ปีที่แล้ว +1

    Thank you so much, your videos are really helpfull !
    When I feel automation challenging, I just watch your videos and it gives me solution.
    Thank you !

  • @RohitChhavi
    @RohitChhavi 8 หลายเดือนก่อน

    These xpath is not working for me could you please help

  • @ashish29x.
    @ashish29x. 3 ปีที่แล้ว +1

    Hi Naveen, I have a question regarding scroll into view. May I know, how can we implement the scripts to identify the specific web element without using scroll into view with some action. that means I need to set up the window page size such as chrome zoom % then we won't need to scroll down then click due to by default it is using 100% zoom & it doesn't matter whatever I have set up my chrome zoom % in current setting instead of the window size (dimension setup).

  • @neelkantraj9092
    @neelkantraj9092 3 ปีที่แล้ว

    Hey naveen trying to contact you, however not able to....
    Need your paid videos oly for devops part... please reply

  • @amlan5448
    @amlan5448 3 ปีที่แล้ว +1

    Thanks Naveen. Could you also please make a video on the same origin policy. I was asked in the recent interview.

  • @sekharbabu2851
    @sekharbabu2851 7 หลายเดือนก่อน

    If i want to go to last opened window(Without using index),can some one please help

  • @bhavanamahajan3657
    @bhavanamahajan3657 3 ปีที่แล้ว +2

    @Naveen : Thank you so much for helping us.

    • @bhavanamahajan3657
      @bhavanamahajan3657 3 ปีที่แล้ว

      @Naveen, yesterday I had interview with L&T and he asked me that if the chrome version is keep on changing every week then how would you handle this? We are not supposed to do any manual intervention in this case.. Could you please help us with this question as well?

  • @alim241081
    @alim241081 หลายเดือนก่อน

    i have a question why we are using list here,same thing we can achive by set also

  • @lauraa762
    @lauraa762 7 หลายเดือนก่อน

    I have one doubt. why we have converted that set into list? we can itrate in the set too right?

  • @vidhyamanickaraj5802
    @vidhyamanickaraj5802 3 ปีที่แล้ว +1

    Thankyou so much!Sir...very good explanation 👏

  • @astrologytalk8984
    @astrologytalk8984 ปีที่แล้ว

    why was List created and Set contents put into it? pls can anyone answer?

  • @vinayp959
    @vinayp959 3 ปีที่แล้ว +1

    Here, you are switching to all the open tabs and compare the title in rightwindow method, that means execution time will effect we really have 100 or more than windows. Can not we switch to required window without compare the title? Using index also may not work if open window order change. How can we achieve in this scenario?

    • @naveenautomationlabs
      @naveenautomationlabs  3 ปีที่แล้ว +1

      This is what I mentioned at the end. Please watch it once again.

    • @vinayp959
      @vinayp959 3 ปีที่แล้ว

      @@naveenautomationlabs yes, can you do a video with steams as well. I don't have much knowledge on java streams.

  • @rupamkarmakar2315
    @rupamkarmakar2315 7 หลายเดือนก่อน

    Thank you for the video. However could you also make a video on how to use this SwitchToRightWindow as a reusable method in a different Java Class as it is not feasible to write such huge block every time.

  • @mohammednasir457
    @mohammednasir457 3 ปีที่แล้ว +3

    Hi Naveen, The question here is switching to a specific window, lets say out of 100 windows i need to switch to the 25th window then instead of switching to all windows and getting the title, u should be able to switch to the 25th window directly with one line of code based on the index of the list, the code should somewhat look like this
    Set windowhandles = driver.getwindowhandles();
    ArrayList windows = new ArrayList (windowhandles);
    driver.switchTo().window(windows.get(i));
    where i is the index of the window to be switched;

  • @sweetthirty2
    @sweetthirty2 3 ปีที่แล้ว +2

    superb superb sir

  • @ABAutomationHub
    @ABAutomationHub 3 ปีที่แล้ว +2

    Nice Explanation 👏👏 Good Work👍

  • @darshiya8895
    @darshiya8895 2 ปีที่แล้ว +1

    Thank you for the clear explanations.....it helps a lot

  • @saurcandy1600
    @saurcandy1600 ปีที่แล้ว

    Why did we have to convert set into arrayList, is it because set doesnt maintain any order, however we would be still able to iterate a set. So why we are converting?

  • @kajolhipparge5123
    @kajolhipparge5123 ปีที่แล้ว

    Hi Naveen
    I want to open a multiple windows and by closing all the windows I want to switch on parent window.
    Also want to get the title of all the window.
    Could you please help me to resolve this

  • @sonalirathod9950
    @sonalirathod9950 2 ปีที่แล้ว

    Hey Naveen, how we can close window without confirmation alert ? Please ans me expecting ans from you
    Thank you

  • @anthonydsouza1817
    @anthonydsouza1817 3 ปีที่แล้ว +1

    there is no need for List until you want to get the index by using normal for loop

  • @krishnageete6070
    @krishnageete6070 3 ปีที่แล้ว +1

    Very good explanation, Thanks Naveen!!

  • @kshipra4504
    @kshipra4504 2 ปีที่แล้ว +1

    why set to list conversion??

  • @dsahith5412
    @dsahith5412 9 หลายเดือนก่อน

    Hi Naveen,Is this applicable if we run our code in headless mode?

  • @sudheerkumar2997
    @sudheerkumar2997 3 ปีที่แล้ว

    Write a program to convert number into digit and print in descending order and highest value.Can you please help me on this

  • @jayeshkumar2815
    @jayeshkumar2815 ปีที่แล้ว

    Hi Naveen i have interview questions like if we have open 4 windows and but want to close 3rd window I'm any window from four of them so this code can we make work for it

    • @sauravnayak5188
      @sauravnayak5188 ปีที่แล้ว

      You can provide some identification to 3rd window and switch to that window by using driver.switchto().window(3rdwindowidentification);
      And then use driver.close();

  • @AliG-se4ph
    @AliG-se4ph 2 ปีที่แล้ว +1

    great explanation

  • @kwimuk5429
    @kwimuk5429 2 ปีที่แล้ว

    sir i have a question about this chapter that i got an error invaliderror the same code why? and how should i do? plz check and give the teaching

    • @sauravnayak5188
      @sauravnayak5188 ปีที่แล้ว

      Sir how would anyone would be able to understand what error you’re getting …. Insufficient info

  • @kunalkaushal4155
    @kunalkaushal4155 2 ปีที่แล้ว

    Suppose there is 10 tabs open in window , now i have open a new tab. How can we identify recent open tab .

    • @sauravnayak5188
      @sauravnayak5188 ปีที่แล้ว

      You have to first store 10 tabs handles in Set initialTabs =driver.getWindowHandles();
      Then again use same
      Set PostTabs =driver.getWindowHandles();
      Now you can easily identify newly opened tab by differentiating initialTabls & PostTabs

  • @nikhilkanojia1683
    @nikhilkanojia1683 ปีที่แล้ว

    thanks, this was awesome code wrt window handles.

  • @-zokzok-9455
    @-zokzok-9455 2 ปีที่แล้ว

    if we have 100 pages open or more and we are gonna be switching one by one checking title we are gonna do that until next morning.

    • @sauravnayak5188
      @sauravnayak5188 ปีที่แล้ว

      No one is gonna use 100 windows tbh .. If you do you will find solutions

  • @bihari1422
    @bihari1422 3 ปีที่แล้ว

    If someone wants homework then he can go ahead and print what was the index of the opened tab. For eg. What was the index of the facebook tab out of all opened tabs

    • @naveenautomationlabs
      @naveenautomationlabs  3 ปีที่แล้ว +2

      Yes maintain the counter and keep increasing it. Once Facebook is found. Print the counter.

  • @adyasharma2601
    @adyasharma2601 ปีที่แล้ว

    Hi Sir,i did not understand why did you convert set to list,Please can yiu explain that!

    • @naveenautomationlabs
      @naveenautomationlabs  ปีที่แล้ว

      Just to convert it to order based collection

    • @helloramesh6193
      @helloramesh6193 ปีที่แล้ว

      @@naveenautomationlabs my dear sister learn java first , in english u should learn abcd like that

  • @luckyraj6206
    @luckyraj6206 3 ปีที่แล้ว +1

  • @sandeepkokane9549
    @sandeepkokane9549 3 ปีที่แล้ว +1

    Thank u so much Naveen 👍

  • @pratimchakraborty8933
    @pratimchakraborty8933 2 ปีที่แล้ว

    @naveen you are a messiah for QAs

  • @Nandhis
    @Nandhis 3 ปีที่แล้ว +1

    Thank you Naveen 👍

  • @kadalivaraprasad450
    @kadalivaraprasad450 3 ปีที่แล้ว

    Is there any chance for two pages have same title, if same how we will achieve switch to window required
    @Naveen

  • @isimkhan7043
    @isimkhan7043 2 ปีที่แล้ว

    Your explanation is perfect

  • @sankararaojeeru4333
    @sankararaojeeru4333 2 ปีที่แล้ว

    Thank you so much Naveen :)

  • @vishalvishwakarma4199
    @vishalvishwakarma4199 2 ปีที่แล้ว

    One of the finest video and solution

  • @prasannamaithili8231
    @prasannamaithili8231 3 ปีที่แล้ว +3

    Excellent. But after taking set why we are taking array list

    • @bihari1422
      @bihari1422 3 ปีที่แล้ว

      Because set are unordered in nature.

    • @chandusekhar3164
      @chandusekhar3164 3 ปีที่แล้ว

      Whatever the order, we are comparing again with window title before switch. Why convert to list?

    • @PradipYogi59
      @PradipYogi59 3 ปีที่แล้ว

      You can use set no issues

    • @vinayp959
      @vinayp959 3 ปีที่แล้ว

      Yes, can not we direct use of list instead of set?

    • @prasannamaithili8231
      @prasannamaithili8231 3 ปีที่แล้ว +1

      @@vinayp959 let us try

  • @user-dr9iw3px4f
    @user-dr9iw3px4f 2 ปีที่แล้ว

    Thanks

  • @surendratimmidi6328
    @surendratimmidi6328 2 ปีที่แล้ว

    Good explanation naveen

  • @shanthkumar4709
    @shanthkumar4709 2 ปีที่แล้ว

    This guy is Amazing ❤️

  • @MsNivriti
    @MsNivriti 3 ปีที่แล้ว

    How to switch to correct Alert if there are 6 Alert pop up

    • @naveenautomationlabs
      @naveenautomationlabs  3 ปีที่แล้ว

      How can you get 6 alert pop ups at the same time?

    • @MsNivriti
      @MsNivriti 3 ปีที่แล้ว

      @@naveenautomationlabs this question is asked to me during interview how you can handle 6 pop up at same time?

  • @sssaamm29988
    @sssaamm29988 3 ปีที่แล้ว

    Set does not maintain the insertion order?

    • @Taheershaik
      @Taheershaik 3 ปีที่แล้ว +1

      Set will not maintain the insertion order, the elements are store based on hashcode values... However its impl class Linked HashSet maintains the insertion order.

  • @AmitSingh-tk1il
    @AmitSingh-tk1il 3 ปีที่แล้ว

    Awesome sir 👏

  • @rohanpatil8451
    @rohanpatil8451 2 ปีที่แล้ว

    how can take screenshot of ua code bro