How to upload a file during the automation

67 views
Skip to first unread message

sriram krishnamoorthi

unread,
Mar 25, 2019, 2:59:20 AM3/25/19
to Cognizant Intelligent Test Scripter
Hi,

I want to click on a button and upload a file from my local machine. How can I achieve this using CITS? Any help is highly appreciated.

shantha laxmi kumar

unread,
Mar 25, 2019, 3:05:33 AM3/25/19
to Cognizant Intelligent Test Scripter
Please check if by directly setting the local address of the file to the text box, you can achieve this in your application. If so, please use the action "Set" and provide the file address in your local system under input column. If not, then you can try with AutoIT as is the case with Selenium. An AutoIT script can be called in CITS test case using the action "OpenApp" under object name "App". Please revert with screenshots and console logs if you are still stuck.

sriram krishnamoorthi

unread,
Mar 26, 2019, 6:13:08 AM3/26/19
to Cognizant Intelligent Test Scripter

Hi Shantha,

Thanks for the reply. There is no text box available for specifying the path of the file. I have to click a button on the UI and a window appears where I have to select a file. Is there a way to do it?

Regards
Sriram

shantha laxmi kumar

unread,
Mar 26, 2019, 6:16:38 AM3/26/19
to Cognizant Intelligent Test Scripter

Please try AutoIT scripts and call the same from CITS test case.
using "openapp" action under "app" object name
Reply all
Reply to author
Forward
0 new messages