Question
sykes colombia
CO
Last activity: 13 Sep 2019 12:33 EDT
Control is not found in "Save As" window of web application
Hello,
I am trying to download a file several times using the same parameterized automation, at the beginning of the process the first file is downloaded (in the first iteration), but all the next iterations (using the same automation) the control that receives the file name for the "Save As" window is not found. I tried with WaitForCreate but still the component is not found, validating all the parents of this control I discovered that the control cmbComboBox father of txtTextBox is not recognized by the WaitForCreate so it does not find its son txtTextBox. screenshot attached, I'm using the Pega Robotics Studio v8.0.2038.0
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
I assume you have performed the same process in interrogation mode to troubelshoot. If not, I would do that first. You might be able to identify a match rule that doesn't work for the second time that control gets created. If you haven't, or if it works in interrogation mode when you go through the process a second time, you'll need to examine the RuntimeLog.txt by enabling the FilePublisher. If you set All Categories to Verbose, you should get a detailed description of the matching process on each control. You should look for "| cmbComboBox" (pipe space control name without the quotation marks) in the log to locate all of the attempts at matching it. After the first run, look at all the messages where matching is failing and you might be able to determine which of your match rules does not work on the second iteration. You can also use a tool like Spy++ to get the window handle of the control that isn't matching and then searching the log for it to assist in determining why it didn't match.
sykes colombia
CO
this is what I found:
this is what I found:
===> First iteration
Verbose | 01:52:51.029 PM | 21 | STA | Matching | IncotelSearchSystem | cmbComboBox-40587096 | IsMatch succeeded for rule ClassNameMatchRule - Target: HWND:00091B46
Verbose | 01:52:51.032 PM | 21 | STA | Matching | IncotelSearchSystem | cmbComboBox-40587096 | IsMatch succeeded for rule ControlChildrenMatchRule - Target: HWND:00091B46
Verbose | 01:52:51.033 PM | 21 | STA | Matching | IncotelSearchSystem | cmbComboBox-40587096 | IsMatch succeeded for rule BaseClassNameMatchRule - Target: HWND:00091B46
Verbose | 01:52:51.034 PM | 21 | STA | Matching | IncotelSearchSystem | cmbComboBox-40587096 | IsMatch success - target: HWND:00091B46
Verbose | 01:52:51.035 PM | 21 | STA | Keys | IncotelSearchSystem | cmbComboBox-40587096 | Attach - Current Instance - Adapter: IncotelSearchSystem, Control: cmbComboBox, Target: HWND:00091B46, Key:
Verbose | 01:52:51.036 PM | 21 | STA | Adapters | IncotelSearchSystem | cmbComboBox-40587096 | AttachTarget ComboBox (HWND:00091B46)
...
Info | 01:52:51.055 PM | 21 | STA | Adapters | IncotelSearchSystem | cmbComboBox-40587096 | Control is matched. Target: HWND:00091B46, ParentTarget: HWND:000A1D9A
Verbose | 01:52:51.055 PM | 14 | STA | Windows Messages | IncotelSearchSystem | | Window.set_Text - SendMessage - HWND:00091ABA, msg: WM_SETTEXT, wParam: 0, lParam: D:\Reportes\inCotel\11-09-2019 13-52-18\BAQAME\AGENTS-BAQAME-A.xls
Verbose | 01:52:51.056 PM | 21 | STA | Matching | IncotelSearchSystem | cmbComboBox-40587096 | MatchingService.Match(cmbComboBox,False) 26.9306
..
Verbose | 01:52:51.349 PM | 21 | STA | Adapters | IncotelSearchSystem | cmbComboBox-40587096 | ControlBase.Detach(destroyControl:True) - Target:HWND:00091B46, IsCreated:True
Verbose | 01:52:51.350 PM | 21 | STA | Adapters | IncotelSearchSystem | cmbComboBox-40587096 | DetachTarget ComboBox (HWND:00091B46)
..
Info | 01:52:51.351 PM | 21 | STA | Adapters | IncotelSearchSystem | cmbComboBox-40587096 | ControlBase.Detach(destroyControl:True) - Control is detached
...
===> Second iteration
Verbose | 01:53:25.444 PM | 21 | STA | Matching | IncotelSearchSystem | cmbComboBox-40587096 | MatchingService.Match(cmbComboBox,False) 0
...
Verbose | 01:54:26.188 PM | 1 | STA | Adapters | IncotelSearchSystem | cmbComboBox-40587096 | ControlBase.Detach(destroyControl:True) - Target:, IsCreated:False
...
Verbose | 01:54:36.293 PM | 1 | STA | Adapters | | cmbComboBox-40587096 | Dispose - Destroyed Control
The full file is now attached.
Pegasystems Inc.
US
I don't see the cmbComboBox WaitForCreate timing out in this log. I'd like to see what happens then. Can you reproduce the issue and include that log?
sykes colombia
CO
For purpose of this log I remove the "wait for create" of all the controls, this is the new log with the same structure as the screenshot above
For purpose of this log I remove the "wait for create" of all the controls, this is the new log with the same structure as the screenshot above
Verbose | 03:02:27.287 PM | 21 | STA | Matching | IncotelSearchSystem | cmbComboBox-8426113 | IsMatch succeeded for rule ClassNameMatchRule - Target: HWND:00181A20
Verbose | 03:02:27.289 PM | 21 | STA | Matching | IncotelSearchSystem | cmbComboBox-8426113 | IsMatch succeeded for rule ControlChildrenMatchRule - Target: HWND:00181A20
Verbose | 03:02:27.291 PM | 21 | STA | Matching | IncotelSearchSystem | cmbComboBox-8426113 | IsMatch succeeded for rule BaseClassNameMatchRule - Target: HWND:00181A20
Verbose | 03:02:27.291 PM | 21 | STA | Matching | IncotelSearchSystem | cmbComboBox-8426113 | IsMatch success - target: HWND:00181A20
Verbose | 03:02:27.292 PM | 21 | STA | Keys | IncotelSearchSystem | cmbComboBox-8426113 | Attach - Current Instance - Adapter: IncotelSearchSystem, Control: cmbComboBox, Target: HWND:00181A20, Key:
Verbose | 03:02:27.292 PM | 21 | STA | Adapters | IncotelSearchSystem | cmbComboBox-8426113 | AttachTarget ComboBox (HWND:00181A20)
...
Info | 03:02:27.304 PM | 21 | STA | Adapters | IncotelSearchSystem | cmbComboBox-8426113 | Control is matched. Target: HWND:00181A20, ParentTarget: HWND:00051D3C
Verbose | 03:02:27.305 PM | 21 | STA | Matching | IncotelSearchSystem | cmbComboBox-8426113 | MatchingService.Match(cmbComboBox,False) 17.9549
...
Info | 03:02:27.324 PM | 14 | STA | Automation | DownloadReport | IncotelReports | Automation: DownloadReport - ExecutionLink From: IncotelSearchSystem.Control2.WaitForCreate() To: IncotelSearchSystem.cmbComboBox.WaitForCreate() ID: 384c8b22-8bee-49c0-8fce-1716f2c58ef5
...
Info | 03:02:27.330 PM | 14 | STA | Automation | DownloadReport | IncotelReports | Automation: DownloadReport - ExecutionLink From: IncotelSearchSystem.cmbComboBox.WaitForCreate() To: IncotelSearchSystem.txtTextBox.WaitForCreate() ID: 384c8b22-8bee-49c0-8fce-1716f2c58ef5
...
Verbose | 03:02:27.597 PM | 21 | STA | Adapters | IncotelSearchSystem | cmbComboBox-8426113 | ControlBase.Detach(destroyControl:True) - Target:HWND:00181A20, IsCreated:True
Verbose | 03:02:27.598 PM | 21 | STA | Adapters | IncotelSearchSystem | cmbComboBox-8426113 | DetachTarget ComboBox (HWND:00181A20)
...
Info | 03:02:27.600 PM | 21 | STA | Adapters | IncotelSearchSystem | cmbComboBox-8426113 | ControlBase.Detach(destroyControl:True) - Control is detached
...
Verbose | 03:02:32.405 PM | 14 | STA | Automation | DownloadReport | IncotelReports | Automation: DownloadReport - Executed From: IncotelSearchSystem.cmbComboBox.WaitForCreate() To: IncotelSearchSystem.txtTextBox.WaitForCreate() ID: 384c8b22-8bee-49c0-8fce-1716f2c58ef5
...
Verbose | 03:02:32.406 PM | 14 | STA | Automation | DownloadReport | IncotelReports | Automation: DownloadReport - Executed From: IncotelSearchSystem.Control2.WaitForCreate() To: IncotelSearchSystem.cmbComboBox.WaitForCreate() ID: 384c8b22-8bee-49c0-8fce-1716f2c58ef5
...
Verbose | 03:02:56.046 PM | 21 | STA | Matching | IncotelSearchSystem | cmbComboBox-8426113 | MatchingService.Match(cmbComboBox,False) 0
...
Info | 03:02:56.056 PM | 14 | STA | Automation | DownloadReport | IncotelReports | Automation: DownloadReport - ExecutionLink From: IncotelSearchSystem.Control2.WaitForCreate() To: IncotelSearchSystem.cmbComboBox.WaitForCreate() ID: 384c8b22-8bee-49c0-8fce-1716f2c58ef5
...
Info | 03:03:26.072 PM | 14 | STA | Automation | DownloadReport | IncotelReports | Automation: DownloadReport - ExecutionLink From: IncotelSearchSystem.cmbComboBox.WaitForCreate() To: DownloadReport.messageDialog1.Show() ID: 384c8b22-8bee-49c0-8fce-1716f2c58ef5
...
Verbose | 03:03:46.181 PM | 1 | STA | Adapters | IncotelSearchSystem | cmbComboBox-8426113 | ControlBase.Detach(destroyControl:True) - Target:, IsCreated:False
...
Verbose | 03:03:56.271 PM | 1 | STA | Adapters | | cmbComboBox-8426113 | Dispose - Destroyed Control
Pegasystems Inc.
US
There's really nothing telling in here. I would suggest you try a Rematch after your first iteration. If that doesn't work, you might need someone with access to your machine to assist you.
Are you able to reproduce the issue in interrogation?
sykes colombia
CO
I already tried check the match rules in the interrogation doing the process twice, I cannot re-create this issue, should I create a ticket?
Updated: 13 Sep 2019 12:33 EDT
Pegasystems Inc.
US
If you are unable to figure this out, then I would suggest that you open a support request. If you do, please post the request number here so we can update the post with the resolution.