Feb-03-2020, 06:58 AM
(This post was last modified: Feb-03-2020, 06:58 AM by michael1789.)
Is it possible that
def rest_types_buttons(): buttons = wd.find_elements_by_xpath('//span[@class="zred"]') return buttonsindexes from 1 and not 0? If that is the case then in
button[0].click()
the 0 would be out of range. Try changing it to a 1 and see what happens. That's my best guess.