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