Pages

Search This Blog

Sunday, July 6, 2014

Which is the best way to locate an element?

We choose the method based on which gives the element in fastest way in all the browsers. Finding elements by ID is usually going to be the fastest option, because at its root, it eventually calls down to document.getElementById(), which is optimized by many browsers.
Finding elements by XPath is useful for finding elements using very complex selectors, and is the most flexible selection strategy, but it has the potential to be very slow, particularly in IE. In IE 6, 7, or 8, finding by XPath can be an order of magnitude slower than doing the same in Firefox. IE provides no native XPath-over-HTML solution, so the project must use a JavaScript XPath implementation, and the JavaScript engine in legacy versions of IE really is that much slower.
If you have a need to find an element using a complex selector, I usually recommend using CSS Selectors, if possible. It's not quite as flexible as XPath, but will cover many of the same cases, without exhibiting the extreme performance penalty on IE that XPath can.

104 comments:

  1. Software testing is the process of validating a software performance and quality by employing various test cases. Software development industries are striving hard to deliver quality products to their customers. It increases the demand of experienced testing professionals. FITA is reputed software testing training institute in Chennai offering quality education in shaping software testing professionals.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Document.getElementsByClassName() is also one of the best way to locate an element.

    Test Automation

    ReplyDelete
  5. Hi, I wish to be a regular contributor of your blog. I have read your blog. Your information is really useful for beginner. I did QTP Course in Chennai at Fita training and placement academy which offer best Selenium Course in Chennai with years of experienced professionals. This is really useful for me to make a bright career.

    ReplyDelete
  6. Really awesome blog. Thanks for sharing this informative blog. Currently I have completed Software Testing Training in Chennai at a reputed training institutes. If you are looking for best Software Testing Training Institutes in Chennai reach FITA located at Chennai, India.

    ReplyDelete
  7. This comment has been removed by a blog administrator.

    ReplyDelete
  8. Thanks for sharing informative article on mobile testing. It helped me to understand the future of mobile application development and need of mobile application testing training. Think of joining mobile application testing training in Chennai from reputed IT placement or training academy.

    ReplyDelete
  9. That was a very informative post. Thank you so much. Keep posting more.
    Raksha
    QTP Training in Chennai | QTP Training in Chennai

    ReplyDelete
  10. Thanks for sharing this information. I read your blog and found it very useful. I used it in my training as it is easy to understand for beginners. It is important to make sure that the software application working precisely for the reason it originally designed for.
    software training institutes in Chennai | mobile testing training | software training institutes in Chennai

    ReplyDelete
  11. This comment has been removed by a blog administrator.

    ReplyDelete
  12. Thanks for your post; selenium is most trusted automation tool to validate web application and browser. This tool provides precise and complete information about a software application or environment. Selenium Training in Chennai | Selenium Course in Chennai | Best Selenium training institute in Chennai

    ReplyDelete
  13. Nice content. Software testing is the process of finding software bugs by executing program.
    software testing training in chennai | software testing course in chennai| FITA Velachery |

    ReplyDelete
  14. Selenium is a testing tool which is an open source which can work very well for the professionals and for testers. If a profesional is knowing manual testing then if he learn seenium then there are good chance for career growth.
    selenium training in chennai | selenium training institute in chennai | selenium course in chennai

    ReplyDelete
  15. Very nice blog...
    Great information provided. I appreciate your work.software testing training in noida

    ReplyDelete
  16. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium.
    Selenium

    ReplyDelete
  17. Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    salesforce training in chennai | salesforce training institute in chennai

    ReplyDelete

  18. Thank you for the info. It sounds pretty user friendly. I guess I’ll pick one up for fun. thank u.

    Test Automation Tools Training in Chennai

    ReplyDelete
  19. looking for the best WebSphere Training in chennai? Then join at Greens Technology's WebSphere Training in Chennai

    ReplyDelete
  20. It was very nice blog to learn about Selenium.Thanks for sharing new things.selenium training in chennai

    ReplyDelete
  21. Advanced Selenium Framework Training in Chennai by Vishwa

    Hi, Reach Mr.Vishwa for Best Selenium and Coded UI Training in Chennai with real time project assistance. This people will teach everything from the basics up to advanced level scenarios from frameworks.

    I learned from Mr.Vishwa and Raj they are very good automation people for Selenium Frameworks. After joined with them I learned many things and now I am writing automation scripts in own project. Vishwa 9003085882
    selenium training in chennai

    ReplyDelete
  22. nice blog good information and thanks for sharing...

    ReplyDelete
  23. As disussed above software testing is one of the important field in detecting the bugs. In Software testing selenium training institute in Chennai we are enabled to identify the errors with selenium course and can match the actual results with that of expected results.

    ReplyDelete
  24. It was very nice blog to learn about Selenium.Thanks for sharing new things.selenium training in chennai

    ReplyDelete
  25. We Reduced the batch size to make our training more interactive, well structured & timing too made more flexible for students convenient.
    Android Training in Velachery |
    Android Training in Anna Nagar |
    Android Training in Velachery |
    Android Training in Chennai |

    ReplyDelete
  26. Nice tips for someone new into the world of java Really great tips and finally definitely will help to develop a program in java.
    java training in chennai

    ReplyDelete
  27. Nice tips for someone new into the world of java. Really great tips and finally definitely will help to develop a program in java.
    java training in chennai

    ReplyDelete
  28. hi welcome to this blog. really you have post an informative blog. it will be really helpful to many peoples. thank you for sharing this blog.
    java training in chennai

    ReplyDelete
  29. hi welcome to this blog. really you have post an informative blog. it will be really helpful to many peoples. thank you for sharing this blog.
    java training in chennai

    ReplyDelete
  30. hi welcome to this blog. really you have post an informative blog. it will be really helpful to many peoples. thank you for sharing this blog.
    java training in chennai

    ReplyDelete
  31. Nice tips for someone new into the world of java. Really great tips and finally definitely will help to develop a program in java.
    java training in chennai

    ReplyDelete
  32. hi welcome to this blog. really you have post an informative blog. it will be really helpful to many peoples. thank you for sharing this blog.
    java training in chennai

    ReplyDelete
  33. Thanks for the awesome share
    We at Colan Infotech Private Limited best web design company in chennai,is Situated in US and India,
    will provide you best service in qa testing services
    Design Services and Colan Infotech has a group of exceedingly dedicated, inventive and creative experts with an energy for delivering exciting ,
    helpful and stylish Web and Mobile Applications, We are one of the best software testing services company
    and of course we stepped in bangalore too we are best qa and testing services
    can provide quality assurance and testing services,
    we are the best among the software testing company india

    ReplyDelete
  34. SELENIUM
    From My search…Creating Experts provides Best Selenium Training with real time projects assistance.Most of the modules are equipped with advance level topics which the student can learn from the basics to the advance level stage.They also provide placement assistance in leading MNC companies across the globe according to the current requirements.
    And these are the Best selenium training institute which provides Real Time Hands on Training…
    Codedion Technologies-9003085882
    Creating Experts-8122241286
    They also providing both Classroom/Online Training

    ReplyDelete
  35. This information really worth saying, i think you are master of the content and thank you so much sharing that valuable information and get new skills after refer that post.
    PEGA Training in Chennai

    ReplyDelete




  36. This is really an awesome article. Thank you for sharing this.It is worth reading for everyone.

    Lenovo Service Center in Chennai

    ReplyDelete
  37. Besant Technologies is provide a Complete PRACTICAL Training and Complete REALTIME Training exclusively on Selenium, QTP and Jmeter. Study Material and Practice Material included during the course. We are proud to mention that we are the Best institutes to provide Software Testing COMPLETE PRACTICAL REALTIME TRAINING and hence, closely working with various companies in India. Software Testing Training Institute in Chennai |
    Selenium Training Institute in Chennai |

    ReplyDelete
  38. Looking for PLC training taught by factory trained automation engineers? Call us 91-931OO96831 for industrial automation training classes available.

    ReplyDelete
  39. thanks for this beautiful post of blog I really liked your blog, It is very goof for freshers
    Selenium training and Institute
    Selenium Training in Marathalli
    Selenium Course in Bangalore

    ReplyDelete
  40. At Coepd - (Center of Excellence for Professional Development) Manual & Selenium testing training program is designed to give participants the skills & knowledge to gain a competitive advantage in starting/enhancing a career in software testing. We provide the attendee's software testing service which is required to ensure that tested applications meet all application requirements. Participants receive up-to-date training in multiple areas in Software Testing and a thorough understanding of real-world projects. Our collaborative ecosystem comprising of Partnerships with Software Companies enables real time software test life cycle experience.

    http://www.coepd.com/TestingTraining.aspx

    ReplyDelete
  41. I am very inspired to read your post, it will be very helpful for us.
    node.js development services

    ReplyDelete
  42. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here. Best Java Training Institute Chennai

    ReplyDelete
  43. Your very own commitment to getting the message throughout came to be rather powerful and have consistently enabled employees just like me to arrive at their desired goals.


    Best Java Training Institute Chennai

    ReplyDelete
  44. I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.
    google-cloud-platform-training-in-chennai

    ReplyDelete
  45. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
    Hadoop Training Institute In chennai

    amazon-web-services-training-institute-in-chennai

    ReplyDelete
  46. CIITN is located in Prime location in Noida having best connectivity via all modes of public transport. CIITN offer both

    weekend and weekdays courses to facilitate Hadoop aspirants. Among all Hadoop Training Institute in Noida , CIITN's Big Data and Hadoop Certification course is designed to prepare you to match

    all required knowledge for real time job assignment in the Big Data world with top level companies. CIITN puts more focus in project based training

    and facilitated with Hadoop 2.7 with Cloud Lab—a cloud-based Hadoop environment lab setup for hands-on experience.

    CIITNOIDA is the good choice for Big Data Hadoop

    Training in NOIDA
    in the final year. I have also completed my summer training from here. It provides high quality Hadoop training with Live

    projects. The best thing about CIITNOIDA is its experienced trainers and updated course content. They even provide you placement guidance and have

    their own development cell. You can attend their free demo class and then decide.

    Hadoop Training in Noida
    Big Data Hadoop Training in Noida

    ReplyDelete
  47. Hadoop Training Institute in Noida, The Hadoop

    certification has considerable advantages in addition to the great demand for trained professionals. A certified Hadoop professional gets the

    advantage in terms of payment package compared to other professionals working in the field without certification. When it comes to IJP, Hadoop

    certification is compatible to advance the ladder and accelerate your career. big data hadoop training in Noida, big data hadoop Training institutes

    in Noida, sector 2, oracle big data training,Oracle Training

    in Noida
    , big data boot camp, nosql database training, big data appliance training, exalytics training, exadata course, big data introduction,

    oracle course, oracle training, big data training in Noida, ibm big data hadoop training institutes noida
    Hadoop Training Institute in Noida

    CONTAC CIITN:

    B-12, Sector - 2, Noida, U.P
    State - Uttar Pradesh U.P
    Country - India
    Pin Code - 201301

    Phone - +917290926565
    Mon - Sun: 10am - 6pm

    ReplyDelete
  48. CIITN provides Best java training in noida based on current industry standards that helps attendees to secure placements in their dream jobs at MNCs.The curriculum of our Java training institute in Noida is designed in a way to make sure that our students are not just able to understand the important concepts of the programming language but are also able to apply the knowledge in a practical way.

    if you are looking for the best oracle sql certification center in Noida, CIIT is worth to consider. CIIT is a oracle training institute offering best sql course, oracle training, sql certification and oracle dba training at affordable price. Best Oracle training in Noida.

    Java Training in Noida


    ReplyDelete
  49. I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.
    Best selenium training Institute in chennai

    ReplyDelete
  50. Great post and informative blog.it was awesome to read, thanks for sharing this great content to my vision.
    embedded systems and robotics training in chennai | embedded linux training in chennai .

    ReplyDelete
  51. Dissertation Writing Services Ashford - Help in Dissertation is a remarkable academic portal that is known for offering extensive educational solutions. Parents can even Dissertation Writing Services Ashford.

    Live Chat @ https://www.helpindissertation.co.uk/dissertation-services

    Read More @ Dissertation Help Aberdeen UK

    Buy Essay Online Belfast

    Dissertation Services Belfast

    ReplyDelete
  52. Live Web Experts is a remarkable academic portal that is known for offering best regulation on Accounting Homework Topic to the scholars at a meagre price.
    Live Chat @ https://www.livewebexperts.com/services

    Read More @ Assignment Help Florida
    Online Tutoring Help California

    ReplyDelete
  53. Economics assignment answers NSW – Help with Assignments is a well-known academic portal that offers high-end economics answer help to the universities and college students. Live Chat @ https://www.helpwithassignments.com/management-assignment-help

    Read More @ Help with Homework Australia
    Algebra Assignment Solver
    Nursing Homework Assignment Victoria

    ReplyDelete

  54. Management Tutors is one of the Assignment Help UK that has been successfully rendering amazing academic assistance to the students.
    Live Chat @ https://www.managementtutors.com/
    Read More @ Assignment Help Uk
    Assignment Help Malaysia
    Management Assignment Help

    ReplyDelete
  55. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
    nebosh course in chennai

    ReplyDelete
  56. Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp great deal more around this condition.

    python Training in Bangalore | python Training in Bangalore

    ReplyDelete
  57. Howdy, would you mind letting me know which web host you’re utilizing? I’ve loaded your blog in 3 completely different web browsers, and I must say this blog loads a lot quicker than most. Can you suggest a good internet hosting provider at a reasonable price?
    nebosh course in chennai

    ReplyDelete

  58. Whoa! I’m enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a very good job with this.

    Best Selenium Training in Chennai | Selenium Training Institute in Chennai | Besant Technologies
    Selenium Training in Bangalore | Best Selenium Training in Bangalore

    ReplyDelete
  59. Wonderful piece of work. Master stroke. I have become a fan of your words. Pls keep on writing.

    Article submission sites
    Education

    ReplyDelete
  60. You blog post is just completely quality and informative. Many new facts and information which I have not heard about before. Keep sharing more blog posts.
    python interview questions and answers
    python tutorials
    python course institute in electronic city

    ReplyDelete
  61. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.

    best rpa training in chennai
    rpa training in chennai
    rpa interview questions and answers
    automation anywhere interview questions and answers
    blueprism interview questions and answers
    uipath interview questions and answers
    rpa training in bangalore

    ReplyDelete