
Added hover functionality for ui. Change-Id: I41c9fb5465ef1c6b4189a2681650f2e00bcd88dc Signed-off-by: jpike <jason.pike@windriver.com>
28 lines
630 B
Python
28 lines
630 B
Python
from framework.web.action.web_action import WebAction
|
|
|
|
|
|
class WebActionHover(WebAction):
|
|
"""
|
|
Class representing a Web Click action.
|
|
"""
|
|
|
|
def perform_action(self, web_element, *args):
|
|
"""
|
|
Override the parent's perform action with a hover
|
|
Args:
|
|
web_element: Element to hover on.
|
|
*args: Unused arguments to follow the override signature.
|
|
|
|
Returns: None
|
|
|
|
"""
|
|
self.actions.move_to_element(web_element).perform()
|
|
|
|
def __str__(self):
|
|
"""
|
|
String representation of this action.
|
|
Returns:
|
|
|
|
"""
|
|
return "Hover"
|