O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

New Features of Chropath for XPath and CSS Selectors | Edureka

360 visualizações

Publicada em

**Selenium Certification Training: https://www.edureka.co/testing-with-selenium-webdriver **
This Edureka PPT on "Features of ChroPath" will give you a brief insight into how to use chropath for xpath and css selectors with the help of examples.
Below are the topics covered in this session:
Introduction to Xpath
Introduction to CSS Selectors
What is Chropath?
Features of Chropath
Working of Chropath

Selenium playlist: https://goo.gl/NmuzXE
Selenium Blog playlist: http://bit.ly/2B7C3QR

Instagram: https://www.instagram.com/edureka_lea...
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka

Publicada em: Tecnologia
  • Seja o primeiro a comentar

New Features of Chropath for XPath and CSS Selectors | Edureka

  1. 1. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
  2. 2. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver Topics to be covered… 01 Introduction to Xpath 02 Introduction to CSS Selector 03 What is Chropath? 04 Features of Chropath 05 How to use Chropath? 06 Demo
  3. 3. Introduction to
  4. 4. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver Introduction To Xpath It is also known as XML Path It is a language to query XML Documents Important strategy to locate elements Possess path expression & condition
  5. 5. Syntax & Terminology of
  6. 6. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver Syntax and Terminology Xpath Select current node Select attributes Value of an attribute Attribute Name Tagname like input, div, img etc =/tagname [@Attribute= ‘Value’]
  7. 7. Types of
  8. 8. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver Types of Xpath Relative Xpath Absolute Xpath
  9. 9. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver Types of Xpath Relative Xpath Absolute Xpath It is the direct way to find the element, but the disadvantage of the absolute XPath is that if there are any changes made in the path of the element then that XPath gets failed. Ex: /html/body/div[1]/section/div[1]/div
  10. 10. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver Types of Xpath Relative Xpath Absolute Xpath For, Relative Xpath the path starts from the middle of the HTML DOM structure. It starts with the double forward slash (//), which means it can search the element anywhere at the webpage Ex: //input[@id=‘ ’]ap_email
  11. 11. Introduction to CSS Selectors
  12. 12. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver CSS Selector Locating by CSS Selector using an HTML tag and a class name is similar to using a tag and ID, but in this case, a dot (.) is used instead of a hash sign. EXAMPLES
  13. 13. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver Syntax of CSS Selector Select HTML tag Symbolize ID attribute Value of an attribute CSS=<HTML Tag> <#><AttributeValue>
  14. 14. Introduction to Chropath
  15. 15. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver What is ChroPath? ChroPath is a developer tool which comes very handy in getting Xpaths and CSS selectors for web
  16. 16. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver Features of ChroPath Sidetab opening Retrieve Xpath Generate Xpath and CSS Selectors Verify Xpath and CSS Selectors Provides the matching element Notifies the incorrect Xpath and CSS Selectors 1 2 3 4 5 6
  17. 17. Working of Chropath
  18. 18. Choose Chropath 01 02 03 04 Add Chropath Extension Choose Inspect Tab Generate Selectors How to use ChroPath? www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING

×