像这样的东西有什么区别:
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://www.ubuntu.com/')
和这个:
from selenium import selenium
selenium = selenium("localhost", 4444, "firefox", "http://www.locationary.com/")
selenium.start()
sel = selenium
sel.open("/")
sel.type("inUserName", "email")
sel.type("inUserPass", "password")
sel.click("login@DEFAULT")
???
谢谢。
编辑:
我应该使用哪一个?