SET apikey TO $'''PLACEAPIKEYHERE''' SET sourceimage TO $'''https://oliverx.link/stat/ombrella800x600.jpg''' Web.InvokeWebService.InvokeWebServicePost Url: $'''https://api.nero.com/biz/api/task''' Accept: $'''application/xml''' ContentType: $'''application/json''' CustomHeaders: $'''x-neroai-api-key: %apikey% Content-Type: application/json''' RequestBody: $'''{ \"type\": \"ImageUpscaler:Standard\", \"body\": { \"image\": \"%sourceimage%\" } }''' ConnectionTimeout: 30 FollowRedirection: True ClearCookies: False FailOnErrorStatus: False EncodeRequestBody: False UserAgent: $'''Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20100312 Firefox/3.6''' Encoding: Web.Encoding.AutoDetect AcceptUntrustedCertificates: False TrimRequestBody: True Response=> WebServiceResponse Text.ParseText.ParseForFirstOccurrence Text: WebServiceResponse TextToFind: $'''\"task_id\":\"''' StartingPosition: 0 IgnoreCase: False OccurrencePosition=> Position IF Position = (-1) THEN EXIT Code: 0 ErrorMessage: $'''Please add an valid Nero AI API key to the \"apikey\" variable''' END Text.GetSubtext.GetSubtext Text: WebServiceResponse CharacterPosition: Position + 11 NumberOfChars: 8 Subtext=> TaskID SET ResponseStatus TO $'''pending''' LOOP WHILE (ResponseStatus) <> ($'''done''') WAIT 1 Web.InvokeWebService.InvokeWebService Url: $'''https://api.nero.com/biz/api/task?task_id=%TaskID%''' Method: Web.Method.Get Accept: $'''application/json''' ContentType: $'''application/json''' CustomHeaders: $'''x-neroai-api-key: FDJQ22G4JJ1WAB6IXTTEHZX9 Content-Type: application/json''' ConnectionTimeout: 30 FollowRedirection: True ClearCookies: False FailOnErrorStatus: False EncodeRequestBody: False UserAgent: $'''Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20100312 Firefox/3.6''' Encoding: Web.Encoding.AutoDetect AcceptUntrustedCertificates: False TrimRequestBody: True Response=> WebServiceResponse Text.ParseText.ParseForFirstOccurrence Text: WebServiceResponse TextToFind: $'''\"status\":\"''' StartingPosition: 0 IgnoreCase: False OccurrencePosition=> Position Text.GetSubtext.GetSubtext Text: WebServiceResponse CharacterPosition: Position + 10 NumberOfChars: 4 Subtext=> ResponseStatus IF ResponseStatus = $'''fail''' THEN EXIT Code: 0 ErrorMessage: $'''Processing failed''' END END Text.CropText.CropTextBetweenFlags Text: WebServiceResponse FromFlag: $'''\"output\":\"''' ToFlag: $'''\"''' IgnoreCase: False CroppedText=> URL WebAutomation.LaunchEdge.LaunchEdge Url: sourceimage WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 PiPUserDataFolderMode: WebAutomation.PiPUserDataFolderModeEnum.AutomaticProfile TargetDesktop: $'''{\"DisplayName\":\"Local computer\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser WebAutomation.CreateNewTab.CreateNewTab BrowserInstance: Browser Url: URL WaitForPageToLoadTimeout: 60