有人能告訴我如何使用selenium RC/Webdriver在Gmail/Yahoo郵件中添加附件。如何使用selenium RC/Webdriver在Gmail中添加附件
請幫我解決這種情況。
在此先感謝。
有人能告訴我如何使用selenium RC/Webdriver在Gmail/Yahoo郵件中添加附件。如何使用selenium RC/Webdriver在Gmail中添加附件
請幫我解決這種情況。
在此先感謝。
在您的機器上安裝Autoit。 編寫一個AutoIT腳本,如下所示。
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}")
編寫代碼後,保存該文件作爲attach.exe 下面的行添加到您的硒代碼(如果使用JAVA)
Runtime.getRuntime().exec("c:\\path\\attach.exe");
以上將有助於在添加附件。希望能幫助到你!
下載的自動工具,但是當想要運行腳本時會得到一個警報。在堆棧溢出我不知道我如何附加圖像。請在下面的鏈接找到圖片:http://edutechquestions.blogspot.in/2013/02/how-to-add-attachment-in-gmail-using.html – 2013-02-13 09:48:31
從這裏下載自動文件 http:// www .findthatzipfile.com/download.php?i = 12632497&t = hZIP 編寫自動腳本。將文件另存爲attach.au3 然後使用下載的zip文件中存在的以下實用程序將attach.au3文件轉換爲attach.exe文件 Aut2Exe.exe(73 kb) 轉換後,將exe文件的路徑放入您的碼。 讓我知道你是否仍然面臨任何問題。 在這個過程中,不需要安裝AutoIT軟件。你只需要解壓縮文件並使用這些工具。 – Hemanth 2013-02-18 16:45:19
我使用機器人API找到了這個問題的答案。感謝回答這個問題的ppl。
您可以使用AutoIT工具來處理窗口gui並附加文件。請訪問www.autoitscript.com – Hemanth 2013-02-13 07:23:16