def press_backspace(self, locator):
"""Simulates the user pressing the backspace key while the element at `locator` has focus.
:param locator: An instance of :class:`XPath` or a string containing an XPath expression.
"""
self.find_element(locator).send_keys(Keys.BACK_SPACE)
评论列表
文章目录