There are many xpaths
which can help you locate h3
in the above case, let me list down a few :
using id :
xpath = "//div[@id='paymentSection']//h3"
using text :
xpath = "//h3[contains(.,'Payment Information')]"
using class names :
xpath = "//div[@id='paymentSection']//div[@class='hd header-container']/h3"
using combination of id and class name :
xpath = "//div[@id='paymentSection' and @class='grid-12 form-section']//h3"