Question
Virtusa
IN
Last activity: 16 Oct 2018 12:03 EDT
Files selection on browse button is created
hi all,
when browse button is clicked in web application,file selection window is opened.
in file selection window i am trying to interrogate file selection but not working.
can someone guide me do that in pega robotic studio.
mainly i want to select files on browse through automation
***Updated by moderator: Lochan to add Categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
Neela Reddy Mutyam -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Hello,
Could you please provide some screenshots to help me see what you are trying to do and what type of controls you are working with?
Thanks,
Chris
Updated: 26 May 2017 17:56 EDT
Pegasystems Inc.
US
Please post some screenshots. You might try adding the controls from the Windows Controls tab to see if that works though as the dialog may be blocking the thread we interrogate with.
Virtusa
IN
iam adding the doc which lists the issues iam currently facing, this isue i listed as Number 2, appreciate if i get some clue to try out.
almost exhausted trying possible and knows options.
NOTE: pega robotics studio iam using
Pegasystems Inc.
US
I bet that the file dialog is modal. To automate this, you will need to execute the PerformClick that generates it at the same time as the WaitForCreate (and all associated steps to populate it and close it). To do this, use a Parallel Process from the Toolbox. On the upper thread, trigger the PerformClick method that will generate the box. This method will not return until the box is closed. On the second thread, you may WaitForCreate for the box and then populate it and ultimately close it. Use the bottom thread for continuing on to the next step in your automation. I have attached an example from another solution I have worked with. Let me know if this works for you.
-
Darija Sokolova
Virtusa
IN
Thanks a lot:) it worked!
Sanst, if u don't mind could u address my other issue i listed in the attached document related to dynamic controls.
Problem statement: on changing dropdown value textbox should appear dynamically but not appearing though the value is changed.
tried raise event,blur,focus etc.
attached code snippet doc.
this is the html
<div class="field-item dataValueWrite">
<select data-ctl="["Dropdown"]" id="ContactPartyType" name="$PpyWorkPage$pContactPartyType" validationtype="required" data-change="[["refresh", ["thisSection","", "createClaimPartyPage", "&=", "", ",",":event","","pyWorkPage"]]]" style="width:auto">
<option value="Agent">Agent</option>
<option value="Claimant">Claimant</option>
<option value="CompanyRepresentative">Company Representative</option>
<option selected="" value="Insured">Insured</option>
<option value="Other">Other</option>
</select>
</div>
----------------------
Thanks a lot:) it worked!
Sanst, if u don't mind could u address my other issue i listed in the attached document related to dynamic controls.
Problem statement: on changing dropdown value textbox should appear dynamically but not appearing though the value is changed.
tried raise event,blur,focus etc.
attached code snippet doc.
this is the html
<div class="field-item dataValueWrite">
<select data-ctl="["Dropdown"]" id="ContactPartyType" name="$PpyWorkPage$pContactPartyType" validationtype="required" data-change="[["refresh", ["thisSection","", "createClaimPartyPage", "&=", "", ",",":event","","pyWorkPage"]]]" style="width:auto">
<option value="Agent">Agent</option>
<option value="Claimant">Claimant</option>
<option value="CompanyRepresentative">Company Representative</option>
<option selected="" value="Insured">Insured</option>
<option value="Other">Other</option>
</select>
</div>
----------------------
Virtusa
IN
Hi Sanst,
i have similar functionality in one more module, wherein instead of select files button i have browse button on click of browse button the file selection window is not opening, on stopping the debugger window appears.
applied parallel process concept like earlier but no luck. am i missing something here during integgogation?
Pegasystems Inc.
US
This looks correct, although I cannot see everything. What exactly is happening?
Accenture
CA
Hi,
I have similar scenario with file save window dialog box. i have interrogated everything, but while saving the file not able to pass the file path and name in text box. In Interrogation it highlight the text box and do everything if i test target methods, when i run it did not send the path to fileName edit box. Although i am able to click save button of same dialog box.
Can you please help.
Infosys
IN
If still not working post object explorer of save dialog box controls for further understanding.
Accenture
CA
Pegasystems Inc.
US
That one might be best to rain an SR on and have someone look at it with you as I can't really give you a specific answer without examining the exact controls. I suspect some JavaScript work will be required to get the events to trigger for all of the parents of the control. If you do raise an SR, please update this post (or the original one) with the number so it can be tracked.
Pegasystems Inc.
IN
Hi Sindhu,
For assistance with creating an SR, refer the following article-
Let us know the SR number here within the thread so that we can tag it along with the thread.
Hope the information is helpful.
Virtusa
IN
Hi Vidya,
as per the above instructions I must be linked to some account to raise an SR, and I don't know anyone who have already the accounts linked to administrator. so please can u suggest further to raise an SR.
-
Su Zhu
Pegasystems Inc.
IN
Hi Sindhu,
It would be best to reach out to your Pega account Executive to set this up for you. You could also call into the support phone numbers listed here: Support Contact Information
Regards,
Comptech Associates Inc
US
Sindhu,
Did you get this to work? I had exactly the same problem with a Pega site. I resolved it exactly the way sasnt described it above in his screenshot. You get into a "Catch-22" situation where it won't continue past the "perform click" until the file is selected. So use that Parallel Process so that it does the "PerformClick" on one leg and does a WaitForCreate then selects the file on the other leg. On mine, I just continued on the file selection leg, but it might be more elegant/correct to use come out of the bottom of the tile as sasnt did.
Ed
Virtusa
IN
Yes it worked:)
I have highlighted one more issue with dynamic controls, good if I get some hint.
Westpac Banking Corporation
AU
Hi Sindhu,
Please check this link for browse button issue.