启动浏览器:self.selenium = selenium("localhost", 4444, "*firefox", "http://218.108.8.83:2048") 打开根页面:sel.open("/") 等待元素出现:def waitForElement(self, elementName):for i in range(60):try:if self.selenium.is_el... Read More
posted @ 2011-05-25 11:46 hjtc Views(362) Comments(0) Diggs(0) Edit