TestProject Forum

Used Robot class to interact with File chooser dialog box

I created a addons for file upload using file chooser dialog. On my local IDE it is working when I test the robot class but after Uploading on Testproject there was an error saying
“access denied (“java.awt.AWTPermission” “accessClipboard”)”

Hi @jimbyllc

Instead of automating a native file browser dialog using the robot framework,
I would suggest simply using the File Upload addon instead to provide a path to the file you want to upload.

Please give it a try.