예제 #1
0
파일: api.py 프로젝트: Pithikos/seletronium
class User(object):

	def __init__(self, driver):
		self.surrogate=Surrogate(driver)

	# Look for an element
	def sees(self, *exprs):
		return self.surrogate.do("see", exprs)

	# Keyboard type
	def types(self, input, *exprs):
		return self.surrogate.do("type", input, exprs)

	# Mouse click
	def clicks(self, *exprs):
		return self.surrogate.do("click", exprs)

	# Go to address
	def goto(self, url):
		return self.surrogate.do("goto", url)

	# Show history
	def history(self):
		return self.surrogate.history
예제 #2
0
파일: api.py 프로젝트: Pithikos/seletronium
	def __init__(self, driver):
		self.surrogate=Surrogate(driver)