samedi 27 décembre 2014

How to make Selenium test run both on local and remote server with Python Django?

Many Selenium test examples begin like this:



from selenium import webdriver

driver = webdriver.Firefox()
driver.self.driver.get("some hardcoded url")


Is there way to avoid hardcoding urls into the test and somehow retreive domain name from the environment the test was launched in?


Aucun commentaire:

Enregistrer un commentaire