Check out my blog as well www.learn-automation.com
@Jayakrishna-ly3ei3 жыл бұрын
Guruji u r great. koti namskaralu from Telangana.🙏🙏🙏
@Mukeshotwani3 жыл бұрын
Thank you so much Mamidi. It means alot to me.
@jaikalyan32848 жыл бұрын
hello mukesh i went through one of ur video reguarding handling windows can i please know if u have corrected that as u said in one of the comment there. ThankYou
@viveksalgaonkar10053 жыл бұрын
Hi Mukesh, love the way you teach & I have learnt a lot watching your videos & practising the topics. However I'm struggling to accept cookies when i open a website is there anyway you can make a video of this said topic please. Greatly appreciated for all what you are doing for testers like me.
@parulgoyal84168 жыл бұрын
Hi Mukesh, I videos are really helpful. Have gone through many of them. I need to understand how do we can handle multiple pop-ups and window simultaneously on opening a page. U can take example of redbus website, its giving signIn window as well as notification on pop-up to "Allow" or "Block".
@Mukeshotwani8 жыл бұрын
Hey Parul you can use switchTo windows to handle pop up
@sravanboya86786 жыл бұрын
Hi Mukesh Thanks for the video but i want to enter text after handleing popup, can you please help me with that how to enter text after closing popup
@dnyaneshwariohal44257 жыл бұрын
Hi Mukesh, I have very basic query.. Alert is an interface so i assume it has abstract methods so where is the implementation of alert methods like dismiss(), accept()?
@greengobis7 жыл бұрын
Hi Mukesh, I want to know what are firefox2launcher , firefoxchromelauncher and how are they used ?
@Mukeshotwani7 жыл бұрын
Hi Deb I have not used both of them.
@seenukaniappan88827 жыл бұрын
Thanks Mukesh for useful post. Keep doing good things.
@nitingupta829 жыл бұрын
Another great video! Mukesh, can you please post videos on Frameworks: POM, Cucumber, Data Driven etc.. Thank you once again!
@baldygaming22267 жыл бұрын
Hi Mukesh another great day for making automation scripts! thank you for helping us! If I may ask a question i followed your codes firefox and chrome it works perfectly fine but when it comes to IE it moves to a different page. the page should be this record should be deleted to give you a back ground my alert has a decision to proceed or cancel deletion of chosen record. Thank you if you have time to answer! :D
@Mukeshotwani7 жыл бұрын
Hi Marven for IE you can try below code and check DesiredCapabilities cap=new DesiredCapabilities(); cap.setJavascriptEnabled(true); WebDriver driver=new InternetExplorerDriver(cap); You can get some information about DesiredCapability. learn-automation.com/how-to-handle-proxy-in-selenium-webdriver/
@mindsetnuggets7 жыл бұрын
Hello Mukesh, I have been trying your different methods for handling alert on my website, but they all fail. I keep getting this "no open alert error". Second, how do you handle 2 alert popup on the screen? i have one that requires "Yes" or "No" alert and another that just needs to click the close (X) button to close it all on the same page. thank you for your help. I am becoming a better tester. Credit to your awesome tutorials.
@dipukakati47 жыл бұрын
Hello Mukesh - One query here - if two alert boxes are popped up ---how to handle those ?
@shruthipriyaa7 жыл бұрын
hi mukesh...if there are text boxes in alert..how to send values?
@Mukeshotwani7 жыл бұрын
Hi Priya you can use sendKeys to send values to Alert learn-automation.com/handle-alert-in-selenium-webdriver/ driver.switcTo().alert().sendKeys("")
@sarithapopuri24978 жыл бұрын
very nice video
@Mukeshotwani8 жыл бұрын
+Saritha Popuri Thanks Saritha
@PhuongNguyenJD8 жыл бұрын
Thanks for useful videos!
@Mukeshotwani8 жыл бұрын
thnx
@sahanik284 жыл бұрын
@mukesh Otwani: Thank you so much for your videos. Can you please help me how to handle alert in page object model?
@Mukeshotwani4 жыл бұрын
Hi Anik, you need to still use Alert interface.In page object model you just need to create method in respective Page.
@sahanik284 жыл бұрын
@@Mukeshotwani thank you
@sahanik284 жыл бұрын
@@Mukeshotwani Ok. Thanks
@WorldThroughManoramaEyes7 жыл бұрын
Hi Mukesh, i tried with this video,its very helpful..but i am getting this error,Please suggest me solution ""java.lang.ClassCastException: org.openqa.selenium.remote.RemoteWebDriver$RemoteAlert cannot be cast to javafx.scene.control.Alert""
@Od3o_ela_sabil_rabek2 жыл бұрын
Sir, After interacting with the alert how to return focus on the main window?
@Mukeshotwani2 жыл бұрын
Once you handle the alert it will automatically focus on main window 😁
@Od3o_ela_sabil_rabek2 жыл бұрын
@@Mukeshotwani OK thank you sir
@Shivanibbbbb2 жыл бұрын
please help sir, i am trying to get button on form its open separately when i click on add to cart button its not in nor i can get it from alert . i am clicking on product add to cart button . its open up separate form which show you add quantity and add to cart button .i am not able to track button i mean can not track element by xpath
@Mukeshotwani2 жыл бұрын
Hi Shivani, check frames and shadow dom as well.
@TheRammohan18 жыл бұрын
Hello Mukesh, when i working with this type of sites like (redbus,yatra...) while launching the URL through selenium. It will poping a Login popup... Can you please tell me how to handle that.
@Mukeshotwani8 жыл бұрын
Alert won't be applicable.,You can continue as normal way.
@jyothikrishna25885 жыл бұрын
Hi mukesh Could u please tell me how to handle Jquery popup windows
@Mukeshotwani5 жыл бұрын
Hi Jyothi here is the link kzbin.info/www/bejne/m36viZidptuorbc
@Tonii43627 жыл бұрын
As soon as I am using annotations the webdriver is not executing my script. Also although I have TestNG installed in my system when I am putting @Test annotations only JUnit is visible to me. So cannot execute using TestNG. I am not getting the issue.
@raghunandan75664 жыл бұрын
How to handle multiple Javascript Alerts. Suppose after closing the first Alert immediately next popup comes for entering next and so on?
@Mukeshotwani4 жыл бұрын
HI Raghu, if you have multiple alerts one after other then you can create method to handle alert and call the same method again depends on the alert scenario.
@kartikpanda80756 жыл бұрын
Sir how to handle ,if after clicking login botom a new window come with login page details
@Mukeshotwani6 жыл бұрын
Hi Kartik, here is the link learn-automation.com/handle-multiple-windows-in-selenium-webdriver/
@ajithguru76207 жыл бұрын
hi mukesh, how to handled google popup and toast messages at a time
@Mukeshotwani7 жыл бұрын
Any example for this?
@ajithguru76207 жыл бұрын
when i login to my website i get toast message and google popup like save password message .
@apurvakamaji5 жыл бұрын
Why instead of creating a object using new Alert, we're only using it's reference?
@soundaryagunti12467 жыл бұрын
hi Mukesh, I am using linktext driver.findElement(By.linkText("Alert with OK & Cancel ")).click(); for the below.Its not working can you please let me know why? Alert with OK & Cancel demo.automationtesting.in/Alerts.html
@abijithkumar40037 жыл бұрын
Hi Mukesh a doubt . When we open "www.learn-automation.com" after few seconds you get a window for "Join my Automation Network", how to enter values in Name . Is it a JavaScript Alert. how to send keys . please help me
@Mukeshotwani7 жыл бұрын
Hi Abhijeet Its my humble request please dont use that for testing.
@abijithkumar40037 жыл бұрын
For Sure I wont use it for testing Mukesh but how to handle it.
@kavyak69818 жыл бұрын
what is the code to print both expected string and actual string.. ? in console
@Mukeshotwani8 жыл бұрын
use System.out.println or Reporter.log
@kavyak69818 жыл бұрын
How to use the reporter.log
@chhayagupta83994 жыл бұрын
HI, System.out.println(driver.switchTo().alert().getText() )not printing alert text message.
@Mukeshotwani4 жыл бұрын
Hi Chhaya, you can use explicit wait or thread.sleep sometimes alert does not come immediately so we need to wait for alert.
@chhayagupta83994 жыл бұрын
@@Mukeshotwani Thanks!
@HariKrishna-rf2vb3 жыл бұрын
Hello Mukesh, a query.., how to check if an alert is there or not., if alert present accept it ; if not present ignore the alert line. can we write the code for above scenario., pls help
@mohitkwatra18744 жыл бұрын
Hi Sir , Test Case getting failed actual_msg = "Please enter valid ticket number to continue." // Captured from WebApplication from Line 4 String actual_msg =alt.getText(); String expected_msg = "Please enter valid ticket number to continue........"; System.out.println("Alert message is: "+ actual_msg); #Line 4 alt.accept(); Thread.sleep(1000); //Assert.assertEquals(actual_msg, expected_msg); Assert.assertTrue(actual_msg.contains(expected_msg));
@Mukeshotwani4 жыл бұрын
Hi RK, Try replacing Assert.assertTrue(actual_msg.contains(expected_msg)); with Assert.assertTrue(expected_msg.contains(actual_msg));
@mohitkwatra18744 жыл бұрын
Thanx sir, It worked
@jenitorthomson94778 жыл бұрын
how can i handle alert in chrome browser using selenium web driver,