Duuuuuude you are my savior, I had been trying to do this for over 5 hours and after 13 minutes of your video it worked! thanks!
@AnirudhGarg11237 жыл бұрын
Please do something for audio disturbance. Content is great.
@maroofraktim2939 ай бұрын
Indeed, this is the best video on window handling. Keep up the good work.
@Mukeshotwani8 ай бұрын
Thank you so much
@darkflame44414 жыл бұрын
Great video bro, can’t believe so many dislikes because a bit of background noise. But the content is one of the best I’ve seen.
@Mukeshotwani4 жыл бұрын
Thank you mate, this comment means alot to me.
@uditmanerikar23553 жыл бұрын
Hello sir.your genuine effort to teach can be seen.channel would grow for sure.
@arunr86942 жыл бұрын
Hi Mukesh, if I'm in second window and go to third window and then back to second window means , how to handle this
@praveenjaldawar26524 жыл бұрын
Hi Mukesh, Superb explaination of handling popups with debugging..Thank you very much.
@Mukeshotwani4 жыл бұрын
Thanks Praveen :)
@sanjupole14915 жыл бұрын
Why do we need to convert set into arraylist? Please explain.
@user-durga_sankar Жыл бұрын
Hi Mukesh. Your all Videos are very very useful. Thank You so much. Just one thing.. if it can be taken care.. sound is less for some of the videos.
@Mukeshotwani Жыл бұрын
Sorry for that sound issue. Now audio is better I will record video soon with good sound as well.
@user-durga_sankar Жыл бұрын
@@Mukeshotwani Thank You so much.
@manjunathah90254 жыл бұрын
Mukesh, where are you setting the driver path in your code?
@Mukeshotwani4 жыл бұрын
Hi Manjunatha, here is the video for same kzbin.info/www/bejne/qYXHiZiqqdJkr5o
@manjunathah90254 жыл бұрын
@@Mukeshotwani appreciate your reply. Got the answer. Even you talked about using DriverManager also. Helpful. 👍
@manjunathah90254 жыл бұрын
@Mukesh, I have one more doubt related to using single driver instance across multiple test case execution. Every time new driver instance is opened for test case execution, which I don't want to do it and also am not calling any driver. Close() method in @afterClass() annotation.
@Mukeshotwani4 жыл бұрын
please share your code
@snehamazumder23157 жыл бұрын
Thanks for the wonderful explaination.Cleared all the basic concepts of Sets,Lists and their application in handling multiple tabs in Selenium Webdriver.
@venkatjakkepalli48334 жыл бұрын
How to switch to incognito window form normal window, because while getting getWindowHandles() method getting only the normal windows ID'S not the incognito window ID's..please suggest us how to shift in between the two windows if one of the window is in incognito mode
@Mukeshotwani4 жыл бұрын
Hi Venkat, by default Selenium starts fresh session so why you need to start incognito windows?
@venkatjakkepalli48334 жыл бұрын
@@Mukeshotwani in my requirement: checking the restriction of user login a application.so i opened the another window in incognito and checking it..so please suggest us to shift to incognito from normal window.
@tapaskhandai3 жыл бұрын
Hi Mukesh, how we will be sure that when we convert from set to list it will be stored in the same order in which order we wanted it to be?
@Mukeshotwani3 жыл бұрын
Hi Tapas, getWindowHandles use LinkedHashSet internally so in which order windows will open you will get same order in List too.
@tapaskhandai3 жыл бұрын
@@Mukeshotwani Thank You Mukesh for clearing my doubt.
@saurabhshirsath17552 жыл бұрын
Thanks for this wonderful explanation.
@Mukeshotwani2 жыл бұрын
Glad it was helpful! Saurabh
@himanis68214 жыл бұрын
Hello Sir, do we use the same code for switching to new tab and new window after click of any link ?
@parthjangid35874 жыл бұрын
the logic which u have shown in above video 'll it work if we have more than 2 tabs or upto 100 or even more ?
@Mukeshotwani4 жыл бұрын
Hi Parth, yes it is applicable.
@rubalverma49302 жыл бұрын
Hi Mukesh while switching to next window in IE browser, am getting "NoSuchWindowException : unable to get browser " could you please help me out in this
@arvinderpreetsingh4107 жыл бұрын
The set which is holding all the Windows will be unordered. Then how can we switch to a particular window (correct index is still unknown)using get index method of arraylist.
@rupjitdas85094 жыл бұрын
Hi Mukesh, set doesn't preserve the order, so in handling multiple windows also this will not be preserved and hence on converting the set to list we may get the order of windowids in different order in every run, which might cause problem, so do you suggest to switch to each window and verify the title first and then proceed with respective window testcases? Or there is some other easy approach?
@Mukeshotwani4 жыл бұрын
Hi Rupjit, getWindowHandles follow LinkedHashSet so it will have value based on order. For example if you open tab 1, tab2, tab3 then it preserve the order.
@RajuDas-zn3gx6 жыл бұрын
Hi Mukesh thank you for this video. I followed each and every for first example where I have 2 windows and count gives 2 as well but control does not switch to new window. Please help me to solve this problem. What do you think reasons behind not focussing on new window
@Mukeshotwani6 жыл бұрын
Hi Raju which browser you are using for Switching?
@RajuDas-zn3gx6 жыл бұрын
i am using internet explorer
@Wanderlust_Naveen3 жыл бұрын
Hi small doubt sir..actually after login to one website,it's going to new window, I need to handle it..if I give xpath of one element in next window..it is not calculating.please help me
@Mukeshotwani3 жыл бұрын
Hi Naveen, what is the issue here? After switching you can work with any webelement on new window.
@Ashirbadratha6 жыл бұрын
Hi Mukesh, I have one scenario. Lets say i click on some link and as a result 2 popup window opened up. Now the requirement is that i need to navigate to second and perform some action and i need to switch to the first popup(not to the parent). So how to handle this case.
@Mukeshotwani6 жыл бұрын
Hi Abhisek as I mentioned in the video that once you get all windows as List then you can traverse in any direction.
@jalpabhatt99497 жыл бұрын
If insertion order is not preserved in Set then how can we get sequential order in getWindowHandles? Shouldn't pop up/new tab id be assigned in random order and come out in random order in Set??
@sasmitamandal8204 жыл бұрын
Hi Mukesh, Very nice video. I have one question. I am trying to navigate a url in a new opened tab in IE .As explained I followed everything. I am able to open tab but unable to open url . Even I tried by switching with child window I'd.. Kindly suggest
@Mukeshotwani4 жыл бұрын
Hi Sasmita, for IE you might have to change registry value.
@rajeshbe22346 жыл бұрын
Sir totally one parent window has 3childs windows so I want to open each window individually then I have to perform some operation on each and every window and switch between each window randomly so I tried like this but I couldn't do so please say how to do?
@chaitanyaakula40185 жыл бұрын
I tired this in ie browser...but the window handler Id's for all the opened tabs are same..please suggest how to handle tabs/windows in IE browser
@Mukeshotwani5 жыл бұрын
Please change of IE browser settings
@AbhishekMishra-ru2fi4 жыл бұрын
Mukesh, how to ensure we are going to window in the order they opened?Because Set has random contents each time.This is the interview question.Plz clarify asap.
@sarmisthatripathy32324 жыл бұрын
Exception in thread "main" org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"css selector","selector":"*[name='q']"} Getting above error during run time .. How to handle this error? Can you please help me out?
@Mukeshotwani4 жыл бұрын
Yes Sarmistha, please share complete program so that I can guide you. As per exception your script is not able to find element.
@malikah71453 жыл бұрын
how is the start session on same window ?
@Mukeshotwani3 жыл бұрын
Hi Malikah, if link opens in same window then no need to handle.
@GagandeepKaur-jh6tw4 жыл бұрын
Hi Mukesh. I have a question. Like you have mentioned we can convert set to ArrayList and then we can use indexes to switch to windows. Can we do sth like this: LinkedHashSet windows=driver.getWindowHandles(); and then use the indexes as LInkedHashSet maintains the insertion order?
@vijitha12363 жыл бұрын
I have tried to sign in bookmyshow site through continue with google but I couldnot navigate to the other window could you pls help me
@praveenjaldawar26524 жыл бұрын
Hi Mukesh, when i run above code, i got error i.e Child window title is Jobs - Recruitment - Job Search - Employment -Job Vacancies - Naukri.com and also exception got NoSuchSessionException. please help
@Mukeshotwani4 жыл бұрын
Hi Praveen, please share program.
@thems4442 жыл бұрын
Please make on the Selenium in JavaScript also.
@gopitn58645 жыл бұрын
Thanks...video helps me to solve my problem...good explanation..Thanks once again
@Mukeshotwani5 жыл бұрын
Thanks Gopi I am glad it helped you.
@bharathikamma89984 жыл бұрын
Hi Mukesh, why you have used set interface instead of list directly.
@Mukeshotwani4 жыл бұрын
Hi Bharathi, getWindowHandles return Set so first we need to store in Set
@rameshbangaru27105 жыл бұрын
Thank you very much mukesh garu..my all doubts clear about windowhandles with your video ...i have one small doubt with set interface we can handle tabs or not means tab by tab you used array list na thats y iam asking......
@A_philodendron4 жыл бұрын
We converted set into array list as, in set we cannot use indexing option. And we directly can't store window handle elements in array list as selenium internally gives result in the form of set. So we need to store in set and then can convert to list if we need to use indexing option.
@sankalpboradkar86826 жыл бұрын
Hello Can you please tell how to open multiple tabs in the same window
@jatinqa40202 жыл бұрын
Hi mukesh sir, I wanna know that how to pass data from one page to another
@Mukeshotwani2 жыл бұрын
Hi Jatin, you can return the values from methods and you can accept in next page.
@KumarSatyajeet6 жыл бұрын
If in the child window, we will get another window then how to handle this sub-child window?
@krishnavamsi97954 жыл бұрын
Feel like best of all explanations loved ot sir ty
@Mukeshotwani4 жыл бұрын
So nice of you Krishna thank you.
@sandeepnehte30947 жыл бұрын
Hi Mukesh, i like your all shared videos, i am Automation Tester(Selenium) , i have a request that can you please upload video for "How to read and verify pdf content in Selenium Webdriver" ??
@animolshameer23555 жыл бұрын
Thanks for your detailed description and it was really useful!!!
@Mukeshotwani5 жыл бұрын
Thanks Animol
@Rahulkumar-su5jd5 жыл бұрын
@@Mukeshotwani hi sir how to handle if you click to 1 link then open 2nd tab then go to 2nd tab and in 2nd tab available one link then click that link then open 3rd tab then how to perform in 3rd tab any thing. plzzz sir reply me
@sangeethkumar91903 жыл бұрын
Hi Mukesh, Set will not maintain any insertion order,If we are passing set (All saved window is )in List which maintains insertion order,In which order it will be stored. If we are accesing list.get(3) How can we ensure it is in the third window. It is the interview question where I am unable to explain properly.Could you help here
@shanmugasrinivas80042 жыл бұрын
Very helpful for me, Thank you
@Mukeshotwani2 жыл бұрын
Glad it was helpful! Tahnks Shanmuga
@archanatiwari75745 жыл бұрын
Hi Mukesh, Can you please explain what is the difference between switching to windows and switching to tab?
@Mukeshotwani5 жыл бұрын
For selenium both are same. Same command and same approach will work
@archanatiwari75745 жыл бұрын
@@Mukeshotwani okay thanks Mukesh
@Mukeshotwani5 жыл бұрын
Cheers
@suryachintha17954 жыл бұрын
@@Mukeshotwani Thanks Mukesh ..i have one doubt here .if that is the case then why we need to store the tabs again in the List .we can proceed (or iterate through) set only right
@dhru25127 жыл бұрын
NIce work and explanation brother Keep up the good work and i am really looking forward to the upcoming new videos.
@Mukeshotwani7 жыл бұрын
Hi Pathak ji, stay tunned I have planned multiple videos in 2018..
@BidyasagarKapaliQA6 жыл бұрын
Hi Mukesh, Thanks for the great session, like all other videos. Just want to know how can we handle the notification window that u can see in Naukri page (GeoLocation with 'Sure' and 'Later' Options) I tried with all possibilities, chrome options. But no luck. would you please help me with that. Thanks in advance.
@Mukeshotwani6 жыл бұрын
Hi Kapali, This always works for me learn-automation.com/disable-chrome-notifications-selenium-webdriver/
@BidyasagarKapaliQA6 жыл бұрын
Thank you. I shall try that. :)
@shibiyazhini86926 жыл бұрын
hi, sendkeys keyword is not working in chrome. the same code i have tried running it on Firefox, its working fine. could you help out in this?
@Mukeshotwani6 жыл бұрын
HI Shibi, Ideally it should work.. Please use latest chrome driver 2.38 chromedriver.storage.googleapis.com/index.html?path=2.38/
@sangamsood56515 жыл бұрын
i want to select 2nd value of index for multiple dropdown in one class
@rajeshbe22346 жыл бұрын
Sir how handle multi windows at a time b/w switch them with the single loop ?
@pujithaa99735 жыл бұрын
Hi Mukesh, Can you please explain how to switch b/w 4 tabs and perform actions on all 4 tabs..Please give suggestions
@Mukeshotwani5 жыл бұрын
Hi Pujitha, you can store them as list as I explained in below and then you can use index for switching.
@Bit2BOSS7 жыл бұрын
Hi Mukesh, that was so good and worth learning. However, I have a problem similar to this. Can we have a discussion please?
@Bujji282437 жыл бұрын
it a great video it's work good but can we handle windows through title names????
@SanjayYadav-xw9zj6 жыл бұрын
Awesome explaination @Mukesh Otwani 👍👍
@Mukeshotwani6 жыл бұрын
Thanks Sanjay.. I am glad you liked my videos.
@Rahulkumar-su5jd5 жыл бұрын
@@Mukeshotwani please make a video on how to switch from parent to child then again a new child window
@saakshib74906 жыл бұрын
All your videos are excellent. Its my request please don't used enhanced for loop while explaining any topic ,it is difficult to understand flow :)
@Mukeshotwani6 жыл бұрын
Sure Saakshi noted your points. I will cover for basic for loop and enhanced for loop as well.
@saakshib74906 жыл бұрын
@@Mukeshotwani Thank you sir :)
@jitendrasheliya23016 жыл бұрын
Very Very Useful, thank you Mukesh.
@mohammedmusthafa24444 жыл бұрын
Hi Mukesh, This video is comparatively good. You explained very well.. Thanks for posting this Video.. I 'm actually facing an issue with switching between the tabs in headless mode for the same scenario u mentioned.. I get timeout error received message renderer exception and test fails.. Have you ever come across this issue? And do you have any possible solution for my case? Any suggestions and workaround is highly appreciated.. Thanks in advance. Good Luck.!
@Mukeshotwani4 жыл бұрын
Hey Mohammed, here is the link for solution kzbin.info/www/bejne/eWmqpoSMnqt3abs
@parulisha6 жыл бұрын
I launched two browsers and tried to switch between these two using getwindowhandle. But in set it is only returning the current window. Used Code: String currentWindow = driver.getWindowHandle(); Set availableWindows = driver.getWindowHandles(); Why is it?
@Mukeshotwani6 жыл бұрын
+parul khullar when you launch two browser then you will have two different instance so you can use both the instance separately. Switch window works when you have launched one window and then from that window if you open another tab or window then you will get count
@parulisha6 жыл бұрын
Mukesh otwani thanks for your quick response. How can that be acheived. Even if I store windowhandles for both the browsers how will the switching be done.its like I have opened first and second browser, and currently I am on second one, and I need to switch. Can you guide
@Mukeshotwani6 жыл бұрын
I will try to create video on this soon. Driver1 handle first browser Driver2 handle another browser Use above instance to handle respective browsers
@parulisha6 жыл бұрын
That will be great.
@parulisha6 жыл бұрын
Would be helpful if you can share some part of code here thanks,!
@priyavijayakumar15097 жыл бұрын
HI mukesh ! Do u have tutorials on javascript ?If no,can u pls suggest a good youtube link for the same?I wanna learn javascript! thanx in advance !
@arpitapanda94286 жыл бұрын
Thanks Mukesh ji, I feel automation using Selenium is easy now, lots of thanks to your valuable videos. Looking forward to more such videos in 2018.
@onlyuser83743 жыл бұрын
how to automate the existing window or tab ,without opening new browser or tab
@deekshithb54596 жыл бұрын
master , i have a doubt here why ur converting SET into LIST what is the reason.........
@Mukeshotwani6 жыл бұрын
Hi Deekshith, not required but using this you can iterate via index as well. Set does not allow index so when we convert Set into List traversing can be easier. List in Java - kzbin.info/www/bejne/hXfNinRmltWMfbs Set in Java- kzbin.info/www/bejne/mXynZpeqj56gb7c
@deepusingla68824 жыл бұрын
how we can connect our idm with python to download
@Mukeshotwani4 жыл бұрын
Hi Deepu, Sorry I did not understand your question. Can you please elaborate?
@deepusingla68824 жыл бұрын
Sir i am trying to make a downloader which will extract the link and download it through idm(internet download manger)
@Pranit_Singh7 жыл бұрын
Hello Mukesh, I really admire what you have been doing. I find it as the best source to learn selenium. I do have a question regarding the mac "/usr/local/bin" folder. I always use system.setProperty, as I cannot access the BIN folder on my MAC as it says no such folder found. After searching on google it says if my mac is upgraded to El Capitan, i can't access the bin folder. Is there any other way to access the bin folder, so that I don't have to type System.setProperty, in every program. Thanks in Advance.
@thebgagabati4 жыл бұрын
Thanks. This is working for me now.
@Mukeshotwani4 жыл бұрын
Great
@aayushpatel33604 жыл бұрын
awesome sir, really much helpful
@ramankumar14875 жыл бұрын
please make a video on how to switch from parent to child then again a new child window
@kirtibanga82923 жыл бұрын
Thank you for wonderful video. This is very informative.
@venkateshgampa6197 жыл бұрын
Hi your videos are very helpful thank you
@Mukeshotwani7 жыл бұрын
Most welcome Mate :) Keep visiting.
@dineshkumaar21174 жыл бұрын
Very Good explanation , but lot of audio disturbance
@divyar51166 жыл бұрын
Thanku very much. Nice explanation.
@Mukeshotwani6 жыл бұрын
Thanks Divya :)
@juliagutorova58073 жыл бұрын
Thanks, really good explanation!
@SaikiranPalugula7 жыл бұрын
Thank you very much Mukesh:-) If possible plz post some videos on C# for Selenium.
@SaikiranPalugula7 жыл бұрын
I didn't get you Brian...
@rohitranjan73225 жыл бұрын
sir your volume is very low.. please do something for it
@Mukeshotwani5 жыл бұрын
Hi Rohit in recent videos I have improved sound quality.
@RuchiSingh-jo7dc4 жыл бұрын
If I want to scroll child page instead of parents then how it will be possible?
@YashPratap0097 жыл бұрын
Sir still facing audio disturbance though your explanation is awesome but bcz of bad audio quality you got 7 dislikes otherwise no one can xplain better then you...kudos to you...blessings
@Mukeshotwani7 жыл бұрын
Yes Yash I am trying my best for Audio but some how audio is not up to mark. I will still try.. Thanks for nice comment.
@akashsinha45837 жыл бұрын
sir its not working its opening the tab and not navigate to that window
@Mukeshotwani7 жыл бұрын
Hi Akash, may be some code issue. Please send code to mukeshotwani@learn-automation.com
@MrAmarSindol7 жыл бұрын
sir, audio disturbance is too high, ur volume is too low, pls do something, ur hardwork is going waste
@Mukeshotwani7 жыл бұрын
Hi Amar, I will try to fix soon
@mohitgoel95967 жыл бұрын
please make an tutorial in findbys and findAll
@theriderpanda4 жыл бұрын
Hi guys, if your page doesn't have clickable links then try this code to open a new tab, and then you could use the logic explained in the video to handle tabs/windows. String url="example.com"; JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript("window.open(arguments[0])", url);
@Mukeshotwani4 жыл бұрын
Hey Pavan thank for the code and your input.
@Mukeshotwani4 жыл бұрын
I am wondering if link is not clickable then as per user perspective he wont be access the link.
@theriderpanda4 жыл бұрын
@@Mukeshotwani Hi Mukesh, In my use case, I need to open a new tab and access some email, and switch back to the parent window to continue the testing on the main page. So I thought people who are working on such use cases, this code might be useful.
@Mukeshotwani4 жыл бұрын
@@theriderpanda Yes definitely it would help others and yes now I can understand your scenario too.
@arunragavan4424 жыл бұрын
tq so much i searching everywhere but u only give me solution
@mohitsachdeva93746 жыл бұрын
Sir its not going under if condition. I am writing the correct code but its still not entering the if condition package forms; import java.util.Iterator; import java.util.Set; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.ui.Select; public class EdufectFormFullTest { public static void main(String[] args) { // TODO Auto-generated method stub String baseUrl="localhost:8080/WebApplication6/BasicForm1.jsp"; String name = "Mohit Sachdeva"; String age = "22"; String gender = "Male"; String line1 = "House No 401, Pocket 3"; String line2 = "Janta Flats, Paschim Puri"; String city = "New Delhi"; String zipcode = "110063"; String email = "mohitsachdeva.ms@gmail.com"; String mobile = "9999360340"; String working = "Yes"; String experience = "1"; String workUrl="localhost:8080/WebApplication6/WorkingDetails.jsp"; String namecomp="Edufect"; String designation="Java Trainee"; String background="Netbeans"; String year = "2018"; String salary = "10000"; String relocate = "No"; String projectLocation = System.getProperty("user.dir"); System.setProperty("webdriver.chrome.driver", projectLocation+"\\lib\\chromedriver\\chromedriver.exe" ); WebDriver driver = new ChromeDriver(); driver.get(baseUrl); driver.findElement(By.id("name")).sendKeys(name); driver.findElement(By.id("age")).sendKeys(age); WebElement radio1 = driver.findElement(By.id("male")); WebElement radio2 = driver.findElement(By.id("female")); if(gender.equals("Male")) { //Radio Button1 is selected radio1.click(); System.out.println("Radio Button Option 1 Selected"); } if(gender.equals("Female")) { //Radio Button2 is selected radio2.click(); System.out.println("Radio Button Option 2 Selected"); } driver.findElement(By.id("line1")).sendKeys(line1); driver.findElement(By.id("line2")).sendKeys(line2); driver.findElement(By.id("city")).sendKeys(city); driver.findElement(By.id("zipcode")).sendKeys(zipcode); driver.findElement(By.id("email")).sendKeys(email); driver.findElement(By.id("mobile")).sendKeys(mobile); // Selecting CheckBox WebElement option1 = driver.findElement(By.id("working")); // This will Toggle the Check box if(working.equals("Yes")) { option1.click(); } // Check whether the Check box is toggled on if (option1.isSelected()) { System.out.println("Checkbox is Toggled On"); } else { System.out.println("Checkbox is Toggled Off"); } Select drpCountry = new Select(driver.findElement(By.name("experience"))); drpCountry.selectByVisibleText(experience); driver.findElement(By.id("Submit")).submit(); System.out.println("Login Done with Submit"); if(gender.equals("null")) { driver.findElement(By.id("BasicForm1")).click(); System.out.println("Back to Basic Form"); } if(working.equals("null")) { } else { String parent=driver.getWindowHandle(); driver.findElement(By.id("WorkingDetails")).click(); System.out.println("Now Fill Working Details"); // To handle all new opened window. Set allWindows = driver.getWindowHandles(); for(String child:allWindows) { if(!parent.equalsIgnoreCase(child)) { driver.switchTo().window(workUrl); driver.findElement(By.id("namecomp")).sendKeys(namecomp); driver.findElement(By.id("designation")).sendKeys(designation); Select bground = new Select(driver.findElement(By.name("background"))); bground.selectByVisibleText(background); Select y = new Select(driver.findElement(By.name("year"))); y.selectByVisibleText(year); driver.findElement(By.id("salary")).sendKeys(salary); WebElement r1 = driver.findElement(By.id("Yes")); WebElement r2 = driver.findElement(By.id("No")); if(relocate.equals("Yes")) { //Radio Button1 is selected r1.click(); System.out.println("Radio Button Option 1 Selected"); } if(relocate.equals("No")) { //Radio Button2 is selected r2.click(); System.out.println("Radio Button Option 2 Selected"); } driver.findElement(By.id("SubmitPassport")).submit(); System.out.println("Login Done for Submit Passport"); } } } } }
@dipalisanas39144 жыл бұрын
A lot of audio disturbance, but helpful session thank you.
@Mukeshotwani4 жыл бұрын
Thanks Dipali I am working on the audio part... 🙏
@anujamahajan73906 жыл бұрын
video is really good bt there is so Audio disturbance
@SS-ug1qy5 жыл бұрын
I am so happy supper annoying pop-up days are over. Yes, u see some here and there but not like before where every page u land has millions of pop-ups
@Mukeshotwani5 жыл бұрын
Welcome mate
@saxenahimanshu65843 жыл бұрын
Everything is fine but Scenario: when the multiple windows are already open, then that "Set allwindows " can't count the windows numbers.
@nancybhardwaj38953 жыл бұрын
Thank you Mukesh
@AlexWLychack6 жыл бұрын
Hey nice! Can you share your code, please?
@Mukeshotwani6 жыл бұрын
Hi Alex I have code posted on my blog please have a look learn-automation.com/handle-multiple-windows-in-selenium-webdriver/
@seenukaniappan88827 жыл бұрын
Keep Rocking !
@Mukeshotwani7 жыл бұрын
+Seenu Kaniappan 😀
@veera.akasapu3 жыл бұрын
Thank you
@Mukeshotwani3 жыл бұрын
You're welcome Veera
@neetigoyal90754 жыл бұрын
nice video
@Mukeshotwani4 жыл бұрын
Thanks Neeti, welcome back to the channel
@neetigoyal90754 жыл бұрын
@@Mukeshotwani Thanks Mukesh , i was still following your video offline .I have saved all your videos . But some flavour of comments was missing , so started back with online videos only ...:) Anyway thanks for your warm welcome
@rajeshbe22346 жыл бұрын
Nice bro but still u better to explain clearly some words can't understand audio is not perfect somewhat better
@Mukeshotwani6 жыл бұрын
HI Rajesh this video is old try new video kzbin.info/www/bejne/povHfqaCgKadqZY
@mohammedvaseem35624 жыл бұрын
Hi Mukesh, Thank you for providing valuable content. I had executed this program in Chrome it worked fine. But when i ran the same in firefox driver (by providing required firefox drivers) it got error. Thanks for the help in advance! package MouseActions; import java.util.Set; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class WindowHandling3 { public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.gecko.driver", "E:\\Software Setups\\Gecko\\Gecko Mozilla\\geckodriver.exe"); WebDriver driver= new FirefoxDriver(); driver.manage().window().maximize(); driver.get("seleniumpractise.blogspot.com/2017/"); String parent = driver.getWindowHandle(); System.out.println("Parent value "+parent); driver.findElement(By.xpath("//a[contains(@href,'www.google.com')]")).click(); Set a = driver.getWindowHandles(); System.out.println("Window count size : "+a.size()); System.out.println("Set values data : "+a); for(String child:a) { System.out.println("Value of child: "+child); if(!parent.equalsIgnoreCase(child)) { System.out.println("Under If condition"); driver.switchTo().window(child); System.out.println("Driver Title: "+driver.getTitle()); System.out.println("Before statements"); driver.findElement(By.name("q")).sendKeys("selenium");; //driver.findElement(By.cssSelector("input.gLFyf.gsfi")).sendKeys("Selenium");; Thread.sleep(3000); driver.close(); //driver.quit(); } System.out.println("Completed 1 iteration"); } driver.switchTo().window(parent); Thread.sleep(3000); driver.close(); } } In firefox browser, it got executed till this line System.out.println("Before statements"); and generated this error Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: *[name='q'] For documentation on this error, please visit: seleniumhq.org/exceptions/no_such_element.html
@Mukeshotwani4 жыл бұрын
Hi Vaseem, its strange behavior, can you debug your code kzbin.info/www/bejne/qIm7lnucq8eXmtE
@dabbark6 жыл бұрын
Nice video. Thanks for sharing. I am facing some issue with the below code. With this code, it is actually closing the main window first and then closing the child windows and finally displaying "NoSuchSessionException". Please let me know what is the issue with the code. import java.util.Set; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class WindowsHandlingTest { public static WebDriver driver; public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver", chromeDriverPath); driver = new ChromeDriver(); driver.manage().window().maximize(); driver.get("naukri.com"); String parent = driver.getWindowHandle(); System.out.println("Parent window id is " + parent); Set allWindows = driver.getWindowHandles(); for (String child : allWindows) { if (!parent.equalsIgnoreCase(child)) driver.switchTo().window(child); Thread.sleep(3000); driver.close(); } driver.switchTo().window(parent); System.out.println("Parent window title is " + driver.getTitle()); } }
@sutapapramanick46924 жыл бұрын
best video
@Mukeshotwani4 жыл бұрын
Thanks Sutapa
@amitdhanke40137 жыл бұрын
videos seems not in sequencing manner
@Mukeshotwani7 жыл бұрын
Hi Amit, Follow video in below manner learn-automation.com/selenium-webdriver-tutorial-for-beginners/ learn-automation.com/advance-selenium-webdriver-tutorials/
@anushachalana50087 жыл бұрын
Hi Mukesh, I have sent you one email regarding my doubt. Hope you get time to check that. Thanks
@991tanmay3 жыл бұрын
Kindly use a better mic, the content is really good but the audio disturbance is just horrible :(
@akankshachowdary57386 жыл бұрын
Please y don't u maintain ur audio.... It's very disturbing
@Mukeshotwani6 жыл бұрын
Hi Akansha few videos has some voice issue. Can you check voice in new videos?
@ashish_yadav5426 жыл бұрын
Audio very bad. Content good.
@Mukeshotwani6 жыл бұрын
Hi, Ashish Yes I agree that in this video Audio was not good. I have created another video on the same. Please refer post and video for the same learn-automation.com/handle-multiple-windows-in-selenium-webdriver/
@manishtembhare42 жыл бұрын
Bhai collections aur isme bhi bahut kharkharahat hai video ke beech mein, kaan ke parde hil jaate hain aur words miss ho ja rahe hain .... Baaki automation tester toh aap hi bana ke chhodoge. ✌
@Mukeshotwani2 жыл бұрын
Thank you Manish bhai.. Collection ka alag Maza hai har jagah Selenium me b Rest Assured b.