Selenium Framework for Beginners 7 | What is Page Object Model (POM) | How to create POM in Selenium

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 210

  • @AC-vt1nq
    @AC-vt1nq 3 года назад +6

    Very impressive. Excellent job. Clear and simple to the point. I wish I knew about your series before

    • @RaghavPal
      @RaghavPal  3 года назад

      Thank you very much!

  • @flirtuall78
    @flirtuall78 9 месяцев назад +1

    You are good in explaining the concepts in a simple fashion with practical examples. Thanks for sharing your knowledge.

    • @RaghavPal
      @RaghavPal  9 месяцев назад

      You are welcome Harsh

  • @sushmajnv5042
    @sushmajnv5042 3 года назад +2

    That is what I exactly looking for. Suddenly it shows, I always want to go with video, thank you for your effort. Video deserve like subscribe

    • @RaghavPal
      @RaghavPal  3 года назад

      You are welcome Sushma, thanks

  • @rotrose7531
    @rotrose7531 4 года назад +4

    Thank you very much, best selenium tutorials! You saved me thousands of manual work.

  • @iamthekd07
    @iamthekd07 6 лет назад +3

    Its really so helpful to make my program more efficient and thank you again

    • @RaghavPal
      @RaghavPal  6 лет назад

      Great to know this Kuldeep

  • @KavitaRawatWorld
    @KavitaRawatWorld Год назад

    You made my concepts so easy. on UDemy when i was studying one course that was so lengthy (Rahul arora) here i can see you made it so easy for me.Thanks a lot

    • @RaghavPal
      @RaghavPal  Год назад +1

      Glad to know it helped Kavita

  • @anninn4685
    @anninn4685 2 года назад

    Thankyou so much because of you only my all doubts are cleared out. very nice explanation as name step by step.

  • @IfNotMe
    @IfNotMe 2 года назад +1

    Thank you, I appreciate your support to learners like me, this video helped me a lot.

  • @earngaming9120
    @earngaming9120 5 лет назад

    This video in the series is the one that got me to like n subscribe. I have fallen in love with POM

    • @RaghavPal
      @RaghavPal  5 лет назад

      So happy to know this Samuel

  • @suhasraikar
    @suhasraikar 2 года назад

    Excellent video, resolved all my queries w.r.t Page object model. Thanks!

  • @baldygaming2226
    @baldygaming2226 2 года назад

    nice I suddently understood the coding in Java basic is king!

  • @Mariam_PinkLotus
    @Mariam_PinkLotus 2 года назад

    16:50 love it!

    • @RaghavPal
      @RaghavPal  2 года назад +1

      thanks for watching

  • @truth_0013
    @truth_0013 5 лет назад +2

    I am really enjoying all your video very detailed and easy to follow. Thank you Raghav .

  • @charu1611
    @charu1611 Год назад

    Thank you for making series on this.....
    best explanation 👏 🙌

  • @MrTechwin
    @MrTechwin 3 года назад

    Extra Ordinary Explanation thank you so much😍👍

    • @RaghavPal
      @RaghavPal  3 года назад

      You are welcome 😊

  • @macqueszeff3785
    @macqueszeff3785 5 лет назад +1

    Hi Raghav, Stupendously explained without leaving a trace of doubt m learning automation thro ur videos as m migrating from manual testing, i have small doubt i heard from ma peers that industry now a days uses hybrid framework so if possible could you plz thro some light on what that exactly it is . . Thanks hell a lot n wish you many more success:-)

    • @RaghavPal
      @RaghavPal  5 лет назад +3

      Hi Macques, There are diff types of frameworks based on the design approach. Most common are Keyword, Data-Driven and Hybrid. Keyword framework has functionalities coded into keywords. for example login functionality will be written in a function say login and will be exposed using keyword login. So whenever the user calls this keyword, it will run the login function and do login on the application.
      In Data-Driven, its the data that drives automation, So we have test data stored separately and we can add, delete update data w/o changing the framework. Based on our data the test runs accordingly.
      Hybrid is a mix of both approaches and is more popular and widely used. Here we have keywords for functionalities and action and also use external data.

    • @priyadarshiniMG
      @priyadarshiniMG 4 года назад

      Wonderfully explained...thanks much Raghav

  • @amanaesthetics4984
    @amanaesthetics4984 3 года назад +1

    Amazing stuff you made automation very easy ,🙂

  • @sairammadipalli2600
    @sairammadipalli2600 2 года назад

    I got clarity on POM thanks a lot

  • @AnthonyInSanDiego
    @AnthonyInSanDiego 3 года назад

    Great step-by-step video! Cheers

    • @RaghavPal
      @RaghavPal  3 года назад

      Thanks for watching Anthony

  • @Faz540
    @Faz540 6 лет назад +1

    Great video Raghav. Very helpful

  • @sushanthnavale2499
    @sushanthnavale2499 4 года назад

    hey raghav thaks for making it so simple and i could learn it so easily.

    • @RaghavPal
      @RaghavPal  4 года назад

      You're welcome Sushanth

  • @niraj8202
    @niraj8202 2 года назад

    Thank you for this video. Your videos are very detailed and easy to follow.

  • @darsanas6741
    @darsanas6741 5 лет назад +1

    beautifully explained. Thanks Raghav.

    • @RaghavPal
      @RaghavPal  5 лет назад

      You're welcome Darsana

  • @jayashreednaik5372
    @jayashreednaik5372 Год назад

    explained clearly. thank you

    • @RaghavPal
      @RaghavPal  Год назад

      Glad it was helpful Jayashree

  • @rotrose7531
    @rotrose7531 5 лет назад +2

    Thank you very much, it is a really engaging experience to learn with you.

    • @RaghavPal
      @RaghavPal  5 лет назад

      You're welcome Rose

    • @darwinnoah3329
      @darwinnoah3329 3 года назад

      I realize I'm quite off topic but do anybody know a good website to watch new series online ?

    • @angeldominik650
      @angeldominik650 3 года назад

      @Darwin Noah Lately I have been using Flixzone. Just google for it :)

    • @tristianbrixton7668
      @tristianbrixton7668 3 года назад

      @Angel Dominik Yea, have been using FlixZone for years myself :)

    • @darwinnoah3329
      @darwinnoah3329 3 года назад

      @Angel Dominik thank you, I signed up and it seems like a nice service =) Appreciate it!

  • @arabindamohanty2190
    @arabindamohanty2190 4 года назад

    Really u make it simple to understand 👍

    • @RaghavPal
      @RaghavPal  4 года назад

      Glad to hear that Arabinda

  • @karthikpatil9509
    @karthikpatil9509 4 года назад

    Hi Raghav,wonderful session.Thank you so much

    • @RaghavPal
      @RaghavPal  4 года назад

      Most welcome Karthik

  • @manishkannamoney7455
    @manishkannamoney7455 Год назад

    Best Explanation!

    • @RaghavPal
      @RaghavPal  Год назад

      Glad it was helpful Manish

  • @shadabahmad7764
    @shadabahmad7764 5 лет назад +1

    thanx for sharing this video

  • @meditationandrelaxationmus741
    @meditationandrelaxationmus741 3 года назад

    Thanks helps in frameweork development

    • @RaghavPal
      @RaghavPal  3 года назад

      Most welcome Ashwini

  • @relaxsleep5148
    @relaxsleep5148 2 года назад

    Very well explained, thank you!!

    • @RaghavPal
      @RaghavPal  2 года назад

      Glad it was helpful!

  • @vipinsha
    @vipinsha 3 года назад

    Very nicely explained.

  • @AmolShinde-ot4jb
    @AmolShinde-ot4jb 3 года назад

    Excellent

  • @yohanmallula3132
    @yohanmallula3132 2 года назад

    such a big tq very much sir

    • @RaghavPal
      @RaghavPal  2 года назад

      You are most welcome Yohan

  • @ramalakshmi5640
    @ramalakshmi5640 4 года назад

    Great explainaton

  • @vikasdesai1459
    @vikasdesai1459 3 года назад

    Thank you..useful info 🙏

  • @__ashoq_9469
    @__ashoq_9469 5 месяцев назад

    Thank you sir 🙏🏻

  • @2brosgaming-h9f
    @2brosgaming-h9f 4 года назад

    Very useful video

    • @RaghavPal
      @RaghavPal  4 года назад

      Glad you liked it Sifar

  • @Arjunkumarp
    @Arjunkumarp 4 года назад

    Thank You Raghav !!

  • @AlanMartinez-yk7dm
    @AlanMartinez-yk7dm 4 года назад

    youre a beast bro thank you for your very easy lesson.currently updating my skills from uft and your videos flow very well.

    • @RaghavPal
      @RaghavPal  4 года назад

      So happy to see this Alan

  • @AnilRaj-xj9gk
    @AnilRaj-xj9gk 4 года назад

    Thank you so much for explaining in detail

  • @sainiranjan40
    @sainiranjan40 4 года назад +1

    Hi Raghav, do you think I can implement similar POM concept on native iOS applications ?

  • @3aadel
    @3aadel 4 года назад

    Thank you so much

  • @akashgeorge5433
    @akashgeorge5433 11 часов назад

    great content, tysm
    only please use dark mode in future videos

    • @RaghavPal
      @RaghavPal  7 часов назад

      Noted Akash. will use for all my future slides

  • @divyangjani7600
    @divyangjani7600 5 лет назад

    very good video!

  • @myWayIn619
    @myWayIn619 3 года назад

    Raghav Pal, what would you recommend if I want to use a javascript method with POM?¨

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Frank, if you want to use javascript executor to handle some dynamic element, you can do that.

  • @dimplepal3583
    @dimplepal3583 3 года назад

    Hi Raghav, as per the best practice in selenium automation, which element locator should ideally be used and why?

    • @RaghavPal
      @RaghavPal  3 года назад

      You can go with either xpath with id or css, based on what is available

  • @pavanmanny4523
    @pavanmanny4523 2 года назад

    Nice

  • @checkmate7780
    @checkmate7780 5 лет назад

    Hi Raghav, I follow your tutorials, you explanations are really helpful. Please enhance the audio quality of the videos, it is very very low. I was watching testNG listeners video but I had to quit due to the poor audio quality. Please do something.

    • @RaghavPal
      @RaghavPal  5 лет назад +1

      Sure Mimi, I will check on this. For now pls use headphones and make player volume to max

  • @aidilfarhan3935
    @aidilfarhan3935 3 года назад

    Hi Raghav, do you have to create a new chromedriver for each test case?

    • @RaghavPal
      @RaghavPal  3 года назад

      No Aidil, not needed and will not be efficient

  • @mallikarjunaswamyb3765
    @mallikarjunaswamyb3765 4 года назад

    Hi Ragav, with respect to (18 min 15 sec ) in the video. I have seen that you have used static webelement . will it work for parallel execution ??? during parallel , it kind of conflict right ?

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi, yes, you can check on that. I did not try to run in parallel

  • @shivushankar4954
    @shivushankar4954 3 года назад

    when we want to run pom related packages we should mandatorly create the maven project in eclipse?

  • @scoobytailz557
    @scoobytailz557 5 лет назад +1

    Hi Raghav is this selenium course + your java course enough to apply for QA job? Thank you.

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi, yes after going through these courses with practical hands-on you can start applying. I will suggest that you keep on doing hands-on and also keep on adding new skills. Will get all my courses here automationstepbystep.com/online-courses/

  • @umamahesh4066
    @umamahesh4066 5 лет назад

    Thank u so much raghav

  • @snigshine4481
    @snigshine4481 5 лет назад

    thanks

    • @RaghavPal
      @RaghavPal  5 лет назад

      You're welcome Snigdha

  • @roshankarkera8642
    @roshankarkera8642 4 года назад

    good explanation but since you used static for driver, this will cause problem when running on Grid for parallel execution

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Roshan, yes, I will explain more on this in Grid tutorial

  • @hamifargoogle7618
    @hamifargoogle7618 2 года назад

    Hi Raghav,
    I wish you have created new Maven Project for Page Object Model Tutorial.

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Hamifar, can check this - ruclips.net/p/PLhW3qG5bs-L_8bwNnMHdJ1Wq5M0sUmpSH

  • @anirudhprayaga5588
    @anirudhprayaga5588 3 года назад +1

    Hi Raghav, thank you so much for this video and others in this series. I have a doubt, why did you have WebDriver reference to be static and why did you have the method defined as static in lines 12, 19 at 13:55. Please let me know.

    • @anirudhprayaga5588
      @anirudhprayaga5588 3 года назад

      Any advantages of using static over not using it in the framework?

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Anirudh, you can call static methods without creating objects first.

    • @anirudhprayaga5588
      @anirudhprayaga5588 3 года назад

      @@RaghavPal Thanks for the reply Raghav. I kind of guessed that, but was having a different Question related. If we have a Baseclass of a test set that we configure our webdriver reference in, and we use this webdriver reference in other test classes of the set where we extend the base class and hence the driver is available to all the test classes as well and we do not need to create the object for that webdriver reference in other test classes too. So is there any advantage of having static specified to the Webdriver object as we don't need to create an Object of it in child classes?

    • @RaghavPal
      @RaghavPal  3 года назад

      In general, when we create frameworks we need to use the same driver instance at diff places and for that its best to keep it static

    • @anirudhprayaga5588
      @anirudhprayaga5588 3 года назад

      @@RaghavPal OK thanks Raghav

  • @prashantvaghela3337
    @prashantvaghela3337 2 года назад

    First of all, thank you very much for creating these videos Raghav sir. I just have one concern about Flow-based testing with the POM framework. For example, we have created the Page Objects method for Sign up, log in, Browse Items Page, Check out page, payment page and etc. Now I would like to execute the entire flow as one group. How can we achieve this using Page Object Modal? I have been looking for the answer for quite a while. I am confident that you will be able to help me with it. Thank you in advance Raghav Sir

    • @RaghavPal
      @RaghavPal  2 года назад +1

      Hi Prashant, here we keep the objects and methods in specific page classes and to create a test or flow we can call the methods from required classes

    • @prashantvaghela3337
      @prashantvaghela3337 2 года назад

      Make sense. Thank you sir

  • @yuriyartamonov9881
    @yuriyartamonov9881 4 года назад +1

    You can easily write PageObjects in IntelliJ IDEA with plugin:
    blog.jetbrains.com/idea/2020/03/intellij-idea-2020-1-selenium-support/

    • @RaghavPal
      @RaghavPal  4 года назад

      Thanks for the inputs Yuriy

  • @onkarbhosale2727
    @onkarbhosale2727 5 лет назад

    Thanks soo much ,can you plz copy code and paste in description for revision.

    • @RaghavPal
      @RaghavPal  5 лет назад +1

      Hi, YOu can get code from -. github.com/Raghav-Pal/SeleniumJavaFramework1

  • @MIKEYSREVIEWS
    @MIKEYSREVIEWS 5 лет назад +1

    When I remove "public static void main" run as will not have Java Application.

    • @RaghavPal
      @RaghavPal  5 лет назад +1

      You should have main function somewhere. Main is the starting point for a java compiler

    • @MIKEYSREVIEWS
      @MIKEYSREVIEWS 5 лет назад +2

      Your right I figured it out before. At least I learned something new. Thanks again.

    • @Rubaanisingh1112
      @Rubaanisingh1112 4 года назад

      You still can run the code after removing main but you have to use testng for this , which is way better than main

  • @sailishmanandhar4573
    @sailishmanandhar4573 5 лет назад +1

    I am a little confused. In this example there is only one web element for text box. What about when there are more text boxes. Do I need separate functions for each textbox element?

    • @RaghavPal
      @RaghavPal  5 лет назад +1

      Hi Sailish, Basically we need to create a locator for every object we need to interact on the web page in POM.

    • @sailishmanandhar4573
      @sailishmanandhar4573 5 лет назад +1

      Thank you. It was really helpful :)

  • @rahulsikarwar6349
    @rahulsikarwar6349 4 года назад

    Hi Raghav, Just wanted to ask if I can use extend keyword instead of importing the class ?

    • @RaghavPal
      @RaghavPal  4 года назад

      You will be doing inheritance. You can do.

  • @WorkWork-ed4vc
    @WorkWork-ed4vc 2 года назад

    Wouldn't it be nice if you create a new Maven Project for PageObjectModel for better undersating of your audience?

    • @RaghavPal
      @RaghavPal  2 года назад

      Sure, in new tutorials I will do it

  • @ashwinnair3782
    @ashwinnair3782 3 года назад

    Do we really need that ' default package' in that?

    • @RaghavPal
      @RaghavPal  3 года назад

      will check again Ashwin, have you tried

  • @mky8838
    @mky8838 5 лет назад

    Hello, it 's possible to automate Oracle HCM with selenium java ?

    • @RaghavPal
      @RaghavPal  5 лет назад

      Selenium can work only on browser

    • @mky8838
      @mky8838 5 лет назад

      @@RaghavPal thank you,
      Besides, I have another question.
      do you do certifications in automation? I would like to have information about it.

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi, I teach for corporates and groups. Can do certification programs if required and my schedule matches

  • @Czarkazmx
    @Czarkazmx 2 месяца назад

    Do you have any recent videos?

    • @RaghavPal
      @RaghavPal  2 месяца назад

      Can find all here - automationstepbystep.com/

  • @Rubaanisingh1112
    @Rubaanisingh1112 4 года назад

    hey, why have you created methods without void i.e. with return types..,, what is the benefit of this, how would it help

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Tanu, actually it all depends on your needs. In case you want to get some return, you can do that.

  • @ksdnsdkumar1375
    @ksdnsdkumar1375 2 года назад

    Why are you not using "By" class to store locators ?

    • @RaghavPal
      @RaghavPal  2 года назад

      Can do that, I might have explained that in some future videos

  • @testera8965
    @testera8965 3 года назад

    Hi , what could be the reason that something is working in Chrome but not in firefox

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi, it can be due to speed, objects etc

  • @udayak5864
    @udayak5864 6 лет назад

    Hi Please do a video for Page Factory Model. Thx in advance

  • @ranjithittyipe9469
    @ranjithittyipe9469 4 года назад

    Where are you defining as a Chrome Driver?

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Ranjith, I do not recall and will have to watch the video again. It may be done in the previous one, Hope you have watched all the earlier sessions on this playlist

    • @ranjithittyipe9469
      @ranjithittyipe9469 4 года назад

      @@RaghavPal Wow Raghav, I never expected you to reply back. I got it sorted. You are excellent. God Bless

  • @9313516824
    @9313516824 5 лет назад

    sir what happened if i don't mention Webelement element as null. Only write Webelement element;

    • @RaghavPal
      @RaghavPal  5 лет назад

      That should work as well Pabitra, pls try.

  • @deepakMCA2009knit
    @deepakMCA2009knit 5 лет назад +1

    I confused between the full form of POM. Is it Project Object Model or Page Object Model, because you referred it project object model in previous session of pom.xml

    • @RaghavPal
      @RaghavPal  5 лет назад +1

      its PAGE OBJECT MODEL

  • @MoHarry-r6g
    @MoHarry-r6g Год назад +1

    l+#$a easy.... we still have simple way of doing

  • @sreebellamkonda4887
    @sreebellamkonda4887 3 года назад

    Hi Raghav thankx for the session , a small request from my end can u provide me a properly working POM project as i want to implement in my project can u send me or provide me the file .

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Sree, you can check this projects repo here github.com/Raghav-Pal/SeleniumJavaFramework1

  • @risnarinuz3357
    @risnarinuz3357 3 года назад

    Is there anyway to contact you sir ? I have got some doubhts

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Risna, can let me know here

  • @pallempatisrivarshini
    @pallempatisrivarshini Год назад

    unable to run program
    showing erroe

    • @RaghavPal
      @RaghavPal  Год назад

      Please send details and error message

  • @haseebperspective
    @haseebperspective 2 года назад

    Can i get this code?

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Haseeb, can find here github.com/Raghav-Pal/SeleniumJavaFramework1

  • @teddykiller8421
    @teddykiller8421 3 года назад

    Hi ragav can you share me Jbehave ... classes

    • @RaghavPal
      @RaghavPal  3 года назад

      Not yet created Purushotham

    • @teddykiller8421
      @teddykiller8421 3 года назад

      @@RaghavPal can i expect that course from your side

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Yes, I will plan

  • @Deniz-ss1sv
    @Deniz-ss1sv 3 года назад

    :)

  • @binaykrai5784
    @binaykrai5784 6 лет назад

    Hi Sir, How to do backend/server side applications testing

    • @RaghavPal
      @RaghavPal  6 лет назад

      Hi Binay, will depend on what server and what exactly you are looking to test. You might want to look into ETL for DB testing. Also check this www.softwaretestinghelp.com/how-to-perform-backend-testing/

  • @dachenikhilkumar1
    @dachenikhilkumar1 5 лет назад

    Hi Raghav ,
    i have done the same and below is my code
    package test;
    import org.openqa.selenium.By;
    import org.openqa.selenium.Keys;
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.chrome.ChromeDriver;
    import pages.GoogleSearchPage;
    public class GoogleSearch {
    private static WebDriver driver = null;
    public static void main(String[] args) throws InterruptedException {
    googleSearch();
    }
    public static void googleSearch() throws InterruptedException{
    driver = new ChromeDriver();

    //goto google.com
    driver.get("google.com");

    //enter text in search text box
    //driver.findElement(By.name("q")).sendKeys("book my show");
    GoogleSearchPage.textbox_search(driver).sendKeys("Automation Step by Step");

    Thread.sleep(5000);

    //click on search button
    //driver.findElement(By.name("btnk")).click();
    //driver.findElement(By.name("btnk")).sendKeys(Keys.RETURN);
    GoogleSearchPage.button_search(driver).sendKeys(Keys.RETURN);

    driver.close();

    System.out.println("Test Completed");


    }
    }
    error:
    Starting ChromeDriver 2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91) on port 20487
    Only local connections are allowed.
    Jan 18, 2019 11:40:17 AM org.openqa.selenium.remote.ProtocolHandshake createSession
    INFO: Detected dialect: OSS
    Exception in thread "main" org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"name","selector":"btnk"}
    (Session info: chrome=71.0.3578.98)
    (Driver info: chromedriver=2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 0 milliseconds
    For documentation on this error, please visit: www.seleniumhq.org/exceptions/no_such_element.html
    Can you please help
    after google page gets open and Automation step by step Text is entered in the search box i am unable to perform the return operation
    please help me out

    • @dachenikhilkumar1
      @dachenikhilkumar1 5 лет назад

      and this is the elements i can see after inspecting the google search button

    • @dachenikhilkumar1
      @dachenikhilkumar1 5 лет назад

      my chrome version is : Version 71.0.3578.98 (Official Build) (64-bit)

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Nikhildache, I see you have already commented the line where you are hitting the button btnK. Usually it happens as when you write something on the search box, an auto-suggestion drop-down appears and overlaps over the search button. and search button becomes invisible.
      So after entering text you can either press ESC key to close auto-suggestion and then click btnK or directly hit ENTER key and skip btnk click

    • @dachenikhilkumar1
      @dachenikhilkumar1 5 лет назад +1

      @@RaghavPal Hi Raghav thanks for the reply.

  • @jyotsanarajput3267
    @jyotsanarajput3267 4 года назад +1

    Bravo brilliant sir may I know your email I’d please

    • @RaghavPal
      @RaghavPal  4 года назад +1

      can email at raghav.qna@gmail.com, but replies to emails are delayed, You can get faster response here. Can check tutorials here - automationstepbystep.com/

  • @breezyHaya
    @breezyHaya 5 лет назад

    Halau!

    • @breezyHaya
      @breezyHaya 5 лет назад

      Vi are learning, viii viil see

  • @ashishdarekar5383
    @ashishdarekar5383 4 года назад

    I still continued ..watching ur video ....but now sure .....NOT GOOD AT ALL....

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Ashish, pls let me know where did you face issues

  • @harshadaborade5712
    @harshadaborade5712 3 месяца назад

    Hello sir ,For button click i am getting error such as org.openqa.selenium.NoSuchElementException:

    • @RaghavPal
      @RaghavPal  3 месяца назад

      Harshada
      The `org.openqa.selenium.NoSuchElementException` error in Selenium typically occurs when the script is unable to locate the element you are trying to interact with. Here are a few common reasons and solutions for this issue:
      1. Element Not Present: The element might not be present in the DOM at the time the script is trying to interact with it. You can use `WebDriverWait` to wait until the element is present.
      ```java
      WebDriverWait wait = new WebDriverWait(driver, 10);
      WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.id("yourButtonId")));
      element.click();
      ```
      2. Incorrect Locator: Ensure that the locator you are using is correct. Double-check the element's ID, class, name, or other attributes.
      ```java
      WebElement element = driver.findElement(By.id("yourButtonId"));
      element.click();
      ```
      3. Element in iFrame: If the element is inside an , you need to switch to the first.
      ```java
      driver.switchTo().frame("frameName");
      WebElement element = driver.findElement(By.id("yourButtonId"));
      element.click();
      driver.switchTo().defaultContent();
      ```
      4. Dynamic Elements: If the element's attributes change dynamically, you might need to use a more robust locator strategy, such as XPath.
      ```java
      WebElement element = driver.findElement(By.xpath("//button[text()='Click Me']"));
      element.click();
      ```
      5. Page Load Issues: Ensure the page has fully loaded before attempting to interact with elements.
      ```java
      driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);
      ```
      If you continue to face issues, wrapping your code in a try-catch block can help handle exceptions gracefully
      --

    • @harshadaborade5712
      @harshadaborade5712 3 месяца назад

      @@RaghavPal yes, when we enter the text inside google search box ,it pops up with auto suggestions due to which the search button gets hidden ,for that I had also used keys.RETURN ,But still issue is persist

    • @RaghavPal
      @RaghavPal  3 месяца назад

      try using Escape key

  • @shubhamwakhare2125
    @shubhamwakhare2125 3 года назад

    Thanks