Retry Double Keywords When Error Retry Element Click //clr-main-container//clr-vertical-nav-group//span[contains(.,'Job Service Dashboard')] Retry Wait Until Page Contains Element ${job_service_stop_btn}
Retry Double Keywords When Error Retry Element Click //clr-datagrid//clr-dg-row[contains(.,'${job_type}')]//div[contains(@class,'clr-checkbox-wrapper')] Retry Checkbox Should Be Selected //clr-datagrid//clr-dg-row[contains(.,'${job_type}')]//input
Retry Wait Until Page Contains Resumed jobs successfully
Check Jobs Paused No @{job_types}
Check Jobs Paused
[Arguments] ${paused}=No @{job_types}
FOR ${job_type} IN @{job_types}
Retry Double Keywords When Error Retry Element Click ${job_service_refresh_btn} Retry Wait Element Visible //clr-datagrid//clr-dg-row[contains(.,'${job_type}')]//clr-dg-cell[4][contains(.,'${paused}')]
Select Jobs ${job_type}
Run Keyword If '${paused}' == 'No' Run Keywords
... Retry Wait Element Should Be Disabled ${job_service_resume_btn}
... AND Retry Wait Element ${job_service_pause_btn}
... ELSE Run Keywords
... Retry Wait Element Should Be Disabled ${job_service_pause_btn}
... AND Retry Wait Element ${job_service_resume_btn}
END
Check Jobs Pending Count
[Arguments] &{jobs_type_pending_count}
FOR ${job_type} IN @{jobs_type_pending_count.keys()}
Retry Wait Element Visible //clr-datagrid//clr-dg-row[contains(.,'${job_type}')]//clr-dg-cell[2][contains(.,'${jobs_type_pending_count['${job_type}']}')]
END
Check Pending Job Card
[Arguments] &{jobs_type_pending_count}
${total}= Set Variable ${jobs_type_pending_count['Total']}
Remove From Dictionary ${jobs_type_pending_count} Total
${total_pending_count}= Set Variable 0
${index}= Set Variable 1
FOR ${job_type} IN @{jobs_type_pending_count.keys()}
Run Keyword If '${total}' != '0' Retry Wait Until Page Contains Element //app-pending-job-card//div[contains(@class,'clr-row ng-star-inserted')][${index}]//div[1][contains(.,'${job_type}')]
Retry Wait Until Page Contains Element //app-pending-job-card//div[contains(@class,'clr-row ng-star-inserted')][${index}]//div[2][contains(.,'${jobs_type_pending_count['${job_type}']}')]