UrbanPro

Learn Selenium from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Why is choosing xpath as a locator not considered a good practice in selenium?

Asked by Last Modified  

Follow 3
Answer

Please enter your answer

Python Automation/Development Trainer for working professionals

we can locate element by id,class,xpath, etc., 1) 'id' is unique for all component in html, so searching by id is good option, will reduce the searching time where as xpath will take long-time to find the html element. This is why using xpath is not good practice, but if id is not available then no...
read more
we can locate element by id,class,xpath, etc., 1) 'id' is unique for all component in html, so searching by id is good option, will reduce the searching time where as xpath will take long-time to find the html element. This is why using xpath is not good practice, but if id is not available then no other way than pick by xpath. read less
Comments

IT Professional Trainer On Automation Testing With Selenium

When you choose XPath if there is any change in the hierarchy of the web table in future, we might need to update with current locator. Other locators like IDs will not be changed as they are default property of the element.
Comments

Related Questions

How long will you take to complete selenium course as a weekend batch ? And what is the time duration for each class ?
Selenium and Java basics will take require around 8 hours of coaching. 2 hours every week. Rest, the student needs to practice at home on a daily basis
Ramachandran

Hi All,

Which combination is good?

1) Selenium with Java

2) Selenium with Python

Thank you.

If you're new to coding, I do prefer Python as more like to a descriptive language. But you'll notice less selenium support in web while compared to Java. Java has a broad support base. But Selenium with...
B
Is Selenium in automation a good career?
Yes, it is an awesome career option and it will add value too. I saw people from Manual Testing upgraded themselves to Selenium. If you want to make career in Automation Testing field, then Selenium is...
Vijayaadithya
0 0
8

Can I learn selenium without manual testing knowledge?

The mentor will guide you the basics of Manual Testing ...You can able to learn.
Krishna

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

API Testing with SOAPUI training in pune
Training: API Testing With Soapui Expert Training Contents: Introduction to Webservices Learning Groovy Learning SOAP UI - free version READY API (SOAPUI PRO)- REST WEB SERVICES PARAMETERIZING TESTS

Why JAVA is Platform Independent?
Java is platform independent language because Java has a JVM {Java Virtual Machine} which converts a java code into a byte code which can run on any OS. That means, JVM is working as a sub-platform to...

Xpath Cheatsheet
Xpath Descendant selectors h1 //h1 ? div p //div//p ? ul > li //ul/li ? ul > li > a //ul/li/a div > * //div/* :root

TestNG
TestNG Concepts TestNG: TestNG is an automation framework to run the test cases, test suites and do parallel testing. It is an advanced version of Junit. It consists of many features like annotations,...

Selenium Web Driver commonly used method
Navigation Loading a web page in a current browser window driver.get("www.google.com") driver.navigate().to("www.google.com") driver.navigate().to("www.google.com") Move back & forward Driver.Navigate().Back() Driver.Navigate().Forward() Refresh...

Recommended Articles

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Looking for Selenium Training?

Find best Selenium Training in your locality on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Selenium Classes?

Find best tutors for Selenium Classes by posting a requirement.

  • Post a learning requirement
  • Get customized responses
  • Compare and select the best

Looking for Selenium Classes?

Get started now, by booking a Free Demo Class

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All