爬取需要登录信息的网站是,使用selenium进行模拟登录,在输入完手机验证码后,网站跳转到输入登录信息之前的界面。求怎么办
driver=webdriver.Chrome()
driver.get('https://www.xingtu.cn/ad/creator/index')
time.sleep(2)
botton1=driver.find_element_by_class_name('id-item-container')
botton1.click()
time.sleep(2)
botton2=driver.find_element_by_class_name('mobile')
botton2.click()
time.sleep(2)
phone_number_place=driver.find_element_by_name('mobile')
phone_number_place.send_keys('17612057003')
password_place=driver.find_element_by_name('mobilecaptcha')
botton3=driver.find_element_by_class_name('account-center-code-captcha')
botton3.click()
password=input('输入你的验证码')
password_place.send_keys(password)
botton4=driver.find_element_by_class_name('account-center-action-button')
botton4.click()
time.sleep(10)