test/framework/web/action/web_action_click.py
croy 82d417b9e6 New StarlingX Automation Framework
Fresh start for the StarlingX automation framework.

Change-Id: Ie265e0791024f45f71faad6315c2b91b022934d1
2024-11-29 16:01:57 -05:00

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"