for locating the element by name I did:
text_field = driver.find_element_by_name('panelHeader')
the problem was that ... there are 3 panel with same name 'panelHeader' and depending upon action on particular webpage, the required panel (out of 3) get visible. So whenever i try to locate element by name, always it tries to find the first panelHeader. So cant i do something like find element by name such that the name i denote is for the visible panel.
Am I clear?