What is the difference between something like this:
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://www.ubuntu.com/')
and this:
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")
???
Thanks.
EDIT:
Which one should I use?
Which one should I use?
It depends on your goals. If you need to automate some testcases, it's okay to use both of them. But if you are to start some big process, for example testing automation in your company, I would suggest you to use Webdriver. It would give you more portability and it is more modern. By the way, I am not sure, that Selenium RC is to be developed further.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With