I'm working on quite a simple webpage project and got stuck a bit. I'm using a website that after filling the form and clicking the button gives me my desired data in for of XML document opening in a new window. However, I have no clue how to access it, as I am not given the window name
browser = Browser('firefox')
browser.visit('http://desiredurl/')
form = browser.find_by_id('input')
button = browser.find_by_id('send')
form.fill(string)
button.click()
Clicking on a button triggers an ajax request (doAjaxRequest("POST", url, xml);) and opens a new window with XML document. What is the best way to access data from opened XML?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…