I am working with selenium python and lettuce to test django application.
There are many elements having xpath in the following pattern and i don't know how many of these elements exists in the document.
.//*[@id='accordion-note-1']
.//*[@id='accordion-note-2']
.//*[@id='accordion-note-3']
.//*[@id='accordion-note-4']
Is there any way to use pattern in driver.find_elements_by_xpath ?
Basically my purpose is to get all items having this pattern of xpath.