Can some one tell me how can i add attachment in Gmail/Yahoo mail using selenium RC/Webdriver.
Please help me out in this situation.
Thanks in advance.
Can some one tell me how can i add attachment in Gmail/Yahoo mail using selenium RC/Webdriver.
Please help me out in this situation.
Thanks in advance.
Install Autoit in your machine. Write an AutoIT script as shown below.
WinWaitActive("Choose file") \\specify the name of the choose window
Send("C:\attach\samplefile.txt") \\location of the file you want to attach
Send("{ENTER}")
After writing the code, save a the file as attach.exe Add the below line to your selenium code(if using java)
Runtime.getRuntime().exec("c:\\path\\attach.exe");
The above will be helpful in adding an attachment. Hope it helps!
I found the answer for this question using robot api. Thanks for ppl who responds this question.