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

  Рет қаралды 31,449

Mukesh otwani

Mukesh otwani

Күн бұрын

Пікірлер: 47
@gouryraj381
@gouryraj381 2 жыл бұрын
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 жыл бұрын
Very well explained! Thank you so much for explaining in brief. It helps me a lot. You are an amazing tutor.
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Grishma, I am glad to read your comments. Thank you so much.
@darshanbhatt6556
@darshanbhatt6556 3 жыл бұрын
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.
@AshuTest21
@AshuTest21 8 ай бұрын
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 ай бұрын
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.
@AshuTest21
@AshuTest21 8 ай бұрын
@@Mukeshotwani Thanks.
@maharshirelangi2205
@maharshirelangi2205 3 жыл бұрын
This is the best explanation I have seen in recent times.. Thanku mate and god bless brother ❤️❤️✌️✌️
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
So nice of you Thank you so much Maharshi
@vinitar1474
@vinitar1474 5 жыл бұрын
Wow, very well explained !! Excellent work Mukesh and thanks a lot
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Thank you Smitha
@illusion7223
@illusion7223 4 жыл бұрын
Excellent explanation...indeed a talented teacher...thank you so much!
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Thank you! 😃 so much Maya, it means alot to me.
@jazzzie28
@jazzzie28 5 жыл бұрын
Hello Mukesh can you please make a video on how to perform parallel testing in testNG with a live example?
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Sure Jaspreet, I will do that soon.
@muralidharch433
@muralidharch433 5 жыл бұрын
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 жыл бұрын
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
@atulthorat5670
@atulthorat5670 4 жыл бұрын
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 5 ай бұрын
Our pleasure! thanks Vijay
@lakshmireddy9952
@lakshmireddy9952 5 жыл бұрын
well done bro , thank you excellent explanation
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Thanks Buddy :)
@Imran-M-
@Imran-M- 4 жыл бұрын
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 жыл бұрын
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!
@MrKadeer
@MrKadeer 4 жыл бұрын
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 🙏
@LightAtEndOfTheTunnel
@LightAtEndOfTheTunnel Жыл бұрын
why indirect locator/customized locators are slow, what is logical reason behind it?
@Mukeshotwani
@Mukeshotwani Жыл бұрын
Implementation Complexity Custom XPath Expressions Lack of Browser Optimization
@sfdc_qa
@sfdc_qa 4 жыл бұрын
@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 жыл бұрын
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 жыл бұрын
@@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!
@saketjha4950
@saketjha4950 4 жыл бұрын
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?
@sk_musical8556
@sk_musical8556 4 жыл бұрын
Thank you so much sir !!!
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Most welcome! Snehal
@mudaseer21
@mudaseer21 4 жыл бұрын
Best of India
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Thanks Ahmed, it means alot to me.
@nileshchaudhari5618
@nileshchaudhari5618 3 жыл бұрын
how to click forgot password link using xpath text
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
use xpath with text method or use linkText method or partialLinkText method of Selenium
@rakhirahman4069
@rakhirahman4069 5 жыл бұрын
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!
Dynamic XPath in Selenium  using Different Approaches
28:12
Mukesh otwani
Рет қаралды 300 М.
How to execute failed test cases in Selenium webdriver
17:09
Mukesh otwani
Рет қаралды 97 М.
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 6 МЛН
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 3,9 МЛН
Different Locators In Selenium WebDriver || Best locator to use
44:28
Naveen AutomationLabs
Рет қаралды 130 М.
How to Handle Frames in Selenium Webdriver
27:03
Mukesh otwani
Рет қаралды 114 М.
How To Perform Drag and Drop in Selenium WebDriver
19:06
Mukesh otwani
Рет қаралды 30 М.
Page Object Model in Selenium Webdriver Step by Step Guide
31:21
Mukesh otwani
Рет қаралды 467 М.
Locators in Selenium WebDriver | Ultimate Guide for Beginners |  Day 10
18:13
The Testing Academy
Рет қаралды 12 М.
How to Handle Multiple Windows or Tabs in Selenium Webdriver
25:40
Mukesh otwani
Рет қаралды 171 М.
Explicit Wait in Selenium Webdriver
18:08
Mukesh otwani
Рет қаралды 90 М.