I have been using python for a while, I want to save certain web pages that require prior login. Since this site uses javascript, I decided to use selenium for python using firefox webdrive. I was able to log in. But the site requires me to accept EULA before I access the required pages.
The problem is that I need to scroll through all the text (with a separate scrollbar div) before I can click the Accept button. I am completely new to selenium and javascript.
The provided username and password are valid and I will change them as soon as I get the solution.
dr = webdriver.Firefox()
dr.get("https://freida.ama-assn.org/Freida/user/programDetails.do?pgmNumber=1401611114")
dr.find_element_by_id("go_username").clear()
dr.find_element_by_id("go_username").send_keys("hajayd")
dr.find_element_by_id("go_password").clear()
dr.find_element_by_id("go_password").send_keys("123456")
dr.find_element_by_id("Image1").click()
dr.get("https://freida.ama-assn.org/Freida/eula.do")
# code to scroll down eula here
dr.find_element_by_id("agreeBtn").click()
dr.get("https://freida.ama-assn.org/Freida/user/programDetails.do?pgmNumber=1401611114")
# Final page I want to visit
Is it possible? Is there any other acceptable solution?