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"
Useful links
- Learn Python: https://pythonbasics.org/
- More Python: https://pythonprogramminglanguage.com