diff --git a/common_utilities/selenium/webapps.py b/common_utilities/selenium/webapps.py index 5d6fefc6..4392339d 100644 --- a/common_utilities/selenium/webapps.py +++ b/common_utilities/selenium/webapps.py @@ -267,7 +267,11 @@ def answer_repeated_questions(self, question_label, input_type, input_value): elements = self.driver.find_elements(*answer_locator) for position in range(1, len(elements) + 1): per_answer_locator = (By.XPATH, self.per_answer_format.format(question_label, input_type, position)) - self.wait_to_clear_and_send_keys(per_answer_locator, input_value) + self.scroll_to_element(per_answer_locator) + time.sleep(1) + self.clear(per_answer_locator) + self.send_keys(per_answer_locator, input_value) + time.sleep(2) print(str(per_answer_locator), input_value) def open_domain(self, current_url, domain_name):