buttons = driver.find_elements_by_name('booksubmit')
for button in buttons:
    onclick_text = button.get_attribute('onclick')
if onclick_text and re.search('Bedroom Deluxe', onclick_text):
    pass
Find and click an item from 'onclick' partial value