HOME/Articles/

selenium Constants (snippet)

Article Outline

Python web automation, selenium example 'Constants'

Constants

Python selenium example: Constants


TT_Constants = dict(Browser           = "firefox",
                    Base_URL          = "http://travelingtony.weebly.com/",
                    Facebook_Username = "[email protected]",
                    Facebook_Password = "year2014"
)

class LocatorMode:

 ID           = "id"
 NAME         = "name"
 XPATH        = "xpath"
 CSS_SELECTOR = "cssSelector"