I am new to selenium. I want to replicate a scenario in which User clicks on 'Choose file' and then uploads an excel file lying on the same desktop and then clicks on submit.
I have tried using sikuli and added the below mentioned lines for file upload in the code:
Pattern name = new Pattern("C:\\Users\\delhivery\\Desktop\\Selenium Class\\name.png"); Pattern open = new Pattern("C:\\Users\\delhivery\\Desktop\\Selenium Class\\open.png"); Screen.src = new Screen(); src.setAutoWaitTimeout(30); src.type(name, "C:\\Users\\delhivery\\Desktop\\Express CSV Files\\DataE.xlsx"); src.click(open);
But still it shows errors. I have added the Sikuli Jar file as well in the project. Do I need to import something as well?
Step by step detailed instructions would be great, Thanks!