Showing posts with label How to Find XPath Using Firebug. Show all posts
Showing posts with label How to Find XPath Using Firebug. Show all posts

How to Find XPath Using Firebug





steps

  1. Image titled Find XPath Using Firebug Step 1
    1
    Open Firefox browser with its Mozilla home page
    Ad
  2. Image titled Find XPath Using Firebug Step 2
    2
    Click on Bug tab at the right corner of the Browser.
  3. Image titled Find XPath Using Firebug Step 3
    3
    Click on Inspect element button and place your tip of cursor on any element for which you want to find XPath
  4. Image titled Find XPath Using Firebug Step 4
    4
    In this example, the Mozilla logo was selected. As soon as you hover your cursor on the Logo and click once on it, its HTML tag will get highlighted in Firebug
  5. Image titled Find XPath Using Firebug Step 5

    5
    Right Click on highlighted code and Select Copy XPath like this
  6. Image titled Find XPath Using Firebug Step 6
    6
    Now place this XPath in to your script

Handling Dynamic Elements in Selenium WebDriver

                       Handling Dynamic Elements in Selenium WebDriver Dynamic elements are those elements which have identifiers that a...