def focus(self,locator):
self.do_command("<STR_LIT>", [locator,])<EOL>
Move the focus to the specified element; for example, if the element is an input field, move the cursor to that field.

'locator' is an element locator