Question

How to upload a file in openSpan Web application Automation

Hi, In my automation, I have tried to do file upload on a webpage. In 'chose file to upload' dialog box I interrogated the file name text box (combobox->combobox1->textbox), but the text box is not taking the path value. Can anyone Please help me out of this. -Rajeevee

***Updated by Moderator: Marissa to move from Applications to Product Support***

**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.

Comments

Keep up to date on this post and subscribe to comments

Pega
December 22, 2016 - 10:36am

Check to match sure the textbox is matching.  Without seeing your match rules it is hard to say for sure, but your code is assuming that the textbox is matched which may not be the case.  Add an IsCreated or WaitForCreate test before you set it and then display a MessageBox if IsCreated is false or WaitForCreate fails. 

One other thing to try, put a break point before you set the textbox.  With dialogs such as this, sometimes it you will need to wait for everything to settle.  The dialog may actually match before it becomes visible and the controls are still being created.  If it works with a break point, that would indicate you have a timing issue and need to wait longer for the controls to be there.  WaitForCreate should resolve that.

December 26, 2017 - 8:04pm

Use the WaitForEvent method and it works perfectly.

January 21, 2018 - 10:52am

I am facing the same issue, I tried wait for event , but not working, does raise event work.?

 

January 22, 2018 - 1:37am
Response to AswinP57

Hi,

Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s available on the top right pane of this page. Once created, please reply back here with the URL of the new post.

You may also refer this discussion link as a reference in the new thread.

Vidyaranjan | Community Moderator | Pegasystems Inc.