@@ -24,25 +24,63 @@ def __init__(self, page: Page):
2424 self .save_button = self .page .get_by_role ("button" , name = "Save" )
2525
2626 def select_direction_dropdown_option (self , direction : str ) -> None :
27+ """
28+ Select an option from the 'Direction' dropdown by its label.
29+
30+ Args:
31+ direction (str): The label of the direction option to select.
32+ """
2733 self .contact_direction_dropdown .select_option (label = direction )
2834
2935 def select_caller_id_dropdown_index_option (self , index_value : int ) -> None :
36+ """
37+ Select an option from the 'Caller ID' dropdown by its index.
38+
39+ Args:
40+ index_value (int): The index of the caller ID option to select.
41+ """
3042 self .contact_made_between_patient_and_dropdown .select_option (index = index_value )
3143
3244 def click_calendar_button (self ) -> None :
45+ """Click the 'Calendar' button to open the calendar picker."""
3346 self .click (self .calendar_button )
3447
3548 def enter_start_time (self , start_time : str ) -> None :
49+ """
50+ Enter a value into the 'Start Time' field.
51+
52+ Args:
53+ start_time (str): The start time to enter into the field.
54+ """
3655 self .start_time_field .fill (start_time )
3756
3857 def enter_end_time (self , end_time : str ) -> None :
58+ """
59+ Enter a value into the 'End Time' field.
60+
61+ Args:
62+ end_time (str): The end time to enter into the field.
63+ """
3964 self .end_time_field .fill (end_time )
4065
4166 def enter_discussion_record_text (self , value : str ) -> None :
67+ """
68+ Enter text into the 'Discussion Record' field.
69+
70+ Args:
71+ value (str): The text to enter into the discussion record field.
72+ """
4273 self .discussion_record_text_field .fill (value )
4374
4475 def select_outcome_dropdown_option (self , outcome : str ) -> None :
76+ """
77+ Select an option from the 'Outcome' dropdown by its label.
78+
79+ Args:
80+ outcome (str): The label of the outcome option to select.
81+ """
4582 self .outcome_dropdown .select_option (label = outcome )
4683
4784 def click_save_button (self ) -> None :
85+ """Click the 'Save' button to save the contact with patient form."""
4886 self .click (self .save_button )
0 commit comments