Locators In Selenium Webdriver- Which locator in Best for Automation?

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

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

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

    Superb explanation with lots of patience, am taking class of selenium outside but not like urs detail explanation..thanks a lot Mukesh sir.. 🙏 ur concepts clears all my doubts..

  • @grishmasheladiya7019
    @grishmasheladiya7019 4 ปีที่แล้ว +2

    Very well explained! Thank you so much for explaining in brief. It helps me a lot. You are an amazing tutor.

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว +1

      Hi Grishma, I am glad to read your comments. Thank you so much.

  • @illusion7223
    @illusion7223 4 ปีที่แล้ว +1

    Excellent explanation...indeed a talented teacher...thank you so much!

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว +1

      Thank you! 😃 so much Maya, it means alot to me.

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

    This is the best explanation I have seen in recent times.. Thanku mate and god bless brother ❤️❤️✌️✌️

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

      So nice of you Thank you so much Maharshi

  • @vinitar1474
    @vinitar1474 5 ปีที่แล้ว +1

    Wow, very well explained !! Excellent work Mukesh and thanks a lot

  • @Ashu_Choudhary_1
    @Ashu_Choudhary_1 8 หลายเดือนก่อน +1

    Hi @Mukesh, instead of finding the elements in the HTML code, can we check and copy the available locators directly from selectors Hub extension directly??

    • @Mukeshotwani
      @Mukeshotwani  8 หลายเดือนก่อน +1

      You need to learn also how to write and modify too. In interviews u cant tell that u dont know how to write xpath and css. Some companies where security is more, they wont allow extensions.

    • @Ashu_Choudhary_1
      @Ashu_Choudhary_1 8 หลายเดือนก่อน +1

      @@Mukeshotwani Thanks.

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

    Hello Mukesh Sir. Are there any kind of notes provided by you. You are teaching very excellently and i am able to understand your concepts thoroughly.

  • @atulthorat5670
    @atulthorat5670 4 ปีที่แล้ว +1

    hi Mukesh, Thanks for the video,
    i have one question that:
    What difference does it make to find all the elements from DOM with certain tag?
    Whether the image is overlapping other images OR not ?
    Thanks again for the video.

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Hi Atul, there can be many use cases like while finding broken links, working with calendars, webtables etc.
      Here are few examples which I have covered in my blog
      learn-automation.com/find-broken-links-using-selenium/
      learn-automation.com/handle-calender-in-selenium-webdriver/

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

    Thanks for this great session

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

      Our pleasure! thanks Vijay

  • @lakshmireddy9952
    @lakshmireddy9952 5 ปีที่แล้ว +1

    well done bro , thank you excellent explanation

  • @muralidharch433
    @muralidharch433 5 ปีที่แล้ว +2

    Hi Mukesh.👋
    I have read some where.,
    compared to xpath css is some what fast while identifying Elements.
    Please let us know.
    Thanks.
    Muralidhar 😊👍

    • @Mukeshotwani
      @Mukeshotwani  5 ปีที่แล้ว +2

      Xpath provide more methods for finding elements so in terms of preference I will go with Xpath.
      XPath and CSS has hardly mili seconds of difference in performance

  • @sfdc_qa
    @sfdc_qa 4 ปีที่แล้ว +2

    @Mukesh Ji,
    What should I do if a selector is showing 1of1 in the browser but while using in Selenium script it says unable to locate the element even though I used wait()?
    please help
    I am automating a salesforce application and it has dynamic ids.

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว +2

      Hi Nikhil, when script is failing then try same locators on opened windows (opened by Selenium), second thing do not take id directly, try using contains method of xpath or CSS, third thing if element is matching while locating but if it is failing in application then check frames as well.

    • @sfdc_qa
      @sfdc_qa 4 ปีที่แล้ว +1

      @@Mukeshotwani Thanks Mukesh,
      Yes it was a frame there, so I get into that frame first then search the element and it was there..
      Thanks a lot..
      Please make a video on this concept as well because I am 100% sure our friends get the same issue.
      Thanks again!

  • @jazzzie28
    @jazzzie28 5 ปีที่แล้ว +1

    Hello Mukesh can you please make a video on how to perform parallel testing in testNG with a live example?

    • @Mukeshotwani
      @Mukeshotwani  5 ปีที่แล้ว +1

      Sure Jaspreet, I will do that soon.

  • @Imran-M-
    @Imran-M- 4 ปีที่แล้ว +1

    Hi Mukesh, could you please clarify this doubt -
    @12:38 variable "pass" is an object of By class and we know By is an abstract class, but in Java we cannot create object of an abstract class....then howz it possible, what is the funda here??

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว +2

      Hi Imran,
      Yes but we are not creating object, we are calling method which return By class reference.
      You can not call below
      By a=new By();
      But you can use like below
      By a=By.id("")
      or
      WebDriver driver=new ChromeDriver()- Here WebDriver is Interface.

    • @Imran-M-
      @Imran-M- 4 ปีที่แล้ว

      @@Mukeshotwani hmm, got it...Thanks man!

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

    why indirect locator/customized locators are slow, what is logical reason behind it?

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

      Implementation Complexity
      Custom XPath Expressions
      Lack of Browser Optimization

  • @saketjha4950
    @saketjha4950 4 ปีที่แล้ว +1

    How to find xpath or other locator for sas va UI objects...I have inspected the elements and in html there are .js scripts..like...
    ...how to find xpath or other locator for these kind of webpages....please help

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Can u share demo or sample application?

  • @MrKadeer
    @MrKadeer 4 ปีที่แล้ว +1

    hello Mukesh, do u have full video about "orange HRM" automation demo, if so can you plz upload it , thank you apperiate

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      There can be 100 of scenarios on this application but I dont have end to end video on this. You can automate many scenarios and let me know if you need any help.

    • @MrKadeer
      @MrKadeer 4 ปีที่แล้ว

      @@Mukeshotwani thanks 🙏

  • @sk_musical8556
    @sk_musical8556 4 ปีที่แล้ว +1

    Thank you so much sir !!!

  • @mudaseer21
    @mudaseer21 4 ปีที่แล้ว +2

    Best of India

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว +1

      Thanks Ahmed, it means alot to me.

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

    how to click forgot password link using xpath text

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

      use xpath with text method or use linkText method or partialLinkText method of Selenium

  • @rakhirahman4069
    @rakhirahman4069 5 ปีที่แล้ว +1

    Is the @pagefactoryiniteElement deprecated?

    • @Mukeshotwani
      @Mukeshotwani  5 ปีที่แล้ว

      No I don’t think so which selenium version u r using ?

    • @rakhirahman4069
      @rakhirahman4069 5 ปีที่แล้ว

      @@Mukeshotwani, Thank you for quick reply .C# it is and they also provided what to use to handle it.I appreciate your awesome contribution. Thank you!