#进入注册窗口
for handle in all_handles:
if handle !=sreach_windows:
browser.switch_to_window(handle)
print ('now register window!')
#回到搜索窗口
for handle in all_handles:
if handle==sreach_windows:
browser.switch_to_window(handle)
print('no sreach window!')
browser.find_element_by_xpath(".//*[@id='giftForm']/div[8]/div/input").send_keys("30") #成组数量
#browser.find_element_by_xpath(".//*[@id='giftForm']/div[22]/button[2]").click()