82d417b9e6
Fresh start for the StarlingX automation framework. Change-Id: Ie265e0791024f45f71faad6315c2b91b022934d1
28 lines
598 B
Python
28 lines
598 B
Python
from framework.web.action.web_action import WebAction
|
|
|
|
|
|
class WebActionClick(WebAction):
|
|
"""
|
|
Class representing a Web Click action.
|
|
"""
|
|
|
|
def perform_action(self, web_element, *args):
|
|
"""
|
|
Override the parent's perform action with a click
|
|
Args:
|
|
web_element: Element to click on.
|
|
*args: Unused arguments to follow the override signature.
|
|
|
|
Returns: None
|
|
|
|
"""
|
|
web_element.click()
|
|
|
|
def __str__(self):
|
|
"""
|
|
String representation of this action.
|
|
Returns:
|
|
|
|
"""
|
|
return "Click"
|