Add method to start a process knowing the name and the processDefinition

This commit is contained in:
Cristina Jalba
2019-12-09 08:02:34 +02:00
parent f3dedbf42c
commit c2f7cdb516

View File

@@ -110,6 +110,14 @@ export class StartProcessCloudPage {
await BrowserActions.clearWithBackSpace(locator); await BrowserActions.clearWithBackSpace(locator);
} }
async startProcessWithProcessDefinition(processName: string, processDefinition: string) {
await this.clearField(this.processNameInput);
await this.enterProcessName(processName);
await this.selectFromProcessDropdown(processDefinition);
await this.checkStartProcessButtonIsEnabled();
await this.clickStartProcessButton();
}
formFields(): FormFields { formFields(): FormFields {
return new FormFields(); return new FormFields();
} }