def wait_until_element_has_focus(self, locator, timeout=None):
		"""Waits until the element identified by `locator` has focus.
		You might rather want to use `Element Focus Should Be Set`

		| *Argument* | *Description* | *Example* |
		| locator | Selenium 2 element locator | id=my_id |
		| timeout | maximum time to wait before the function throws an element not found error (default=None) | 5s |"""

		self._info("Waiting for focus on '%s'" % (locator))
		self._wait_until_no_error(timeout, self._check_element_focus_exp, True, locator, timeout)
def wait_until_element_has_focus ( self , locator , timeout = None ) : self . _info ( "Waiting for focus on '%s'" % ( locator ) ) self . _wait_until_no_error ( timeout , self . _check_element_focus_exp , True , locator , timeout )
Waits until the element identified by `locator` has focus.
		You might rather want to use `Element Focus Should Be Set`

		| *Argument* | *Description* | *Example* |
		| locator | Selenium 2 element locator | id=my_id |
		| timeout | maximum time to wait before the function throws an element not found error (default=None) | 5s |