2010-08-25 72 views

回答

1

我們使用iMacros自動運行Gmail,效果很好。棘手的部分是元素ID似乎在頁面加載之間隨機變化!看到這個論壇帖子關於automating Gmail。 Selenium是否支持在固定的X/Y位置點擊?這應該解決它。或者使用論壇帖子中建議的基本HTML界面。

0

如果你想模仿點擊按鈕,只需要去#compose

0

如果您使用Python,請使用mechanize庫並訪問Gmail的HTML版本。 發送按鈕只是一個表單提交按鈕。

import re 
import mechanize 

br = mechanize.Browser() 
br.open("http://htmlversionofgmail.com/composewindow") 

br.select_form(nr=0) # select the first form 
# Do some stuff, fill out the subject, whatever. 
response = br.submit() 
相關問題