I am trying to automate an online survey on a website, but I get this error every time:
Selenium::WebDriver::Error::UnknownError: unknown error: Element is not clickable at
point (561, 864). Other element would receive the click: a id="habla_oplink_a"
class="habla_oplink_a_normal hbl_pal_header_font_size hbl_pal_title_fg "
I need to understand how I can scroll to a certain point so that my script can resume filling out the survey on the page.
This is my code that allows me to fill out part of the survey, but it fails when it reaches a line that does not appear inside the browser (a line that requires the user to scroll down):
buttons = browser.elements(:class => "assessment-choice")
buttons.each do |button|
button.click
end
I would also like to be able to change my code so that it selects only a specific parameter, but the HTML on the page is not very friendly.
This is the webpage I'm looking at: https://staging2.clearfit.com/assessment/assessment/95867fb272df436352a0bd5fbdd
HTML of one of the survey options:
<a id="answers_79_0" class="assessment-choice" onmouseover="answerOver(this)" onmouseout="answerOut(this)" onclick="setAssessmentAnswer(this, 3, '0', '79', '#answers_49839163')">Strongly<br>Agree</a>