I have a code which looks this:
What should I do?
for elem in browser.find_elements_by_xpath('/html/body/form[2]/table/tbody/tr[1]/td[1]/select/option'):
elem.click()
sleep(2)
for ele in browser.find_elements_by_xpath('/html/body/form[2]/table/tbody/tr[1]/td[2]/table/tbody/tr[1]/td[1]/select/option'):
ele.click()It shows up an error of Stale Element. This code is just a sample - I have multiple of these nested for loops. What should I do?
