I've been struggling with this issue for quite some time now. Basically I want to automate a multiple choice test with 60 questions that has 4 radio types per question. The ID is static ;however the value changes for each option. I have coded a loop to handle the 60 questions ,and I want to click on the first radio option for every question ;however since the value changes dynamically it only works for the 1st question. Please help
HTML
<input data-val="true" data-val-number="The field AnswerId must be a number." id="examResult_AnswerId" name="examResult.AnswerId" type="radio" value="62">
while count < 59:
q1 = browser.find_element_by_id('examResult_AnswerId')
q1.send_keys(62)
q1 = browser.find_element_by_id('btnNext')
q1.click()
count += 1