【发布时间】:2014-01-02 08:08:51
【问题描述】:
为什么我们使用sel.open('/') 命令?
sel = selenium('localhost', 4444, '*firefox', 'http://www.google.com/')
sel.start()
sel.open('/')
sel.wait_for_page_to_load(10000)
sel.stop()
有人可以解释这 5 条语句中发生了什么(我的意思是每一行的解释/工作)以及使用这种技术的主要优势是什么(我的意思是使用驱动程序)
browser = webdriver.Firefox()
browser.get('http://www.google.com')
【问题讨论】:
标签: python selenium selenium-webdriver selenium-rc