QaMantra: How to Use FireBug and Firepath in Selenium

How to Use FireBug and Firepath in Selenium

How To Use FireBug To Find Element xpath :

In Order To Use FireBug User Should have FireFox browser Having FireBug Installed ,Click To this link to Know How To Install FireBug and FirePath .


Step To use FireBug is Very easy and Simple ,Please follow my Steps :

  • Open FireFox Browser 
  • Enter Your application URl and Reach To Application WebPage where You Have To Inspect Element  .
  • Identify Object  or  Element whom you want To Inspect .
  • Right click on that specific object 
  • Select an option  'Inspect Element with FireBug
  • Console would open in bottom of Browser 
  • If User Have FirePath  then Absolute Path would be shown in FirePath


      
Absolute Xpath after Inspection In FireBug


  • If user have not installed FirePath yet Then Only Console would open with Page Source Code after Click on 'Inspect Element with FireBug'
  • To Find Absolute Path when Firepath is Not installed ,Right Click on Blue Color Highlighted Source Code and Select Option 'Copy Xpath'  or Copy 'CSS Path'


Absolute Xpath after Inspection In FireBug



  • You Have Copied a Absolute xpath or Absolute CSS Path Now Paste in Your desire code where You want To use.
  • Click To Know More about Absolute and Relative Xpath

No comments: