I am scraping his website. To create an account. Below is the url
After going to this site, click on "Dont have an account yet?" and click "Agree" on the next page.
There I have security questions to fill. For that I wrote the below script.
def findxpath_AddKey(xpath, key1, id, key2):
element = browser.find_element_by_xpath(xpath)
element.click()
browser.execute_script("arguments[0].setAttribute('aria-activedescendant',{})".format(key1),element)
span = browser.find_element_by_id(id)
browser.execute_script("arguments[0].innerText = {}".format(key2), span)
browser.execute_script("arguments[0].setAttribute('class',\"ui-selectmenu-button ui-button ui-widget ui-selectmenu-button-closed ui-corner-all\")",element)
findxpath_AddKey('//*[@id="selectSecurityQuestion1-button"]',"'ui-id-3'", 'selectSecurityQuestion1-button_text', "'Where is your favorite vacation spot?'")
Above process is repeated for other security questions and click "continue". But the website is throwing errors, saying that to fill security questions.
