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