@Component
public class CustomEventStepDefinitions
extends java.lang.Object
Constructor and Description |
---|
CustomEventStepDefinitions() |
Modifier and Type | Method and Description |
---|---|
void |
triggetCustom(java.lang.String event,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String exists)
Manually dispatch a custom event to the element
|
void |
triggetCustom(java.lang.String event,
java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String exists)
Manually dispatch a custom event to the element
|
@When(value="I(?: dispatch a)? \"(.*?)\"(?: event)? on (?:a|an|the) hidden element found by( alias)? \"([^\"]*)\"( if it exists)?") public void triggetCustom(java.lang.String event, java.lang.String alias, java.lang.String selectorValue, java.lang.String exists)
event
- The type of eventalias
- If this word is found in the step, it means the selectorValue is found
from the data set.selectorValue
- The value used in conjunction with the selector to match the element. If
alias was set, this value is found from the data set. Otherwise it is a
literal value.@When(value="I(?: dispatch a)? \"(.*?)\"(?: event)? on (?:a|an|the) hidden element with (?:a|an|the) (ID|class|xpath|name|css selector)( alias)? of \"([^\"]*)\"( if it exists)?") public void triggetCustom(java.lang.String event, java.lang.String selector, java.lang.String alias, java.lang.String selectorValue, java.lang.String exists)
event
- The type of eventselector
- Either ID, class, xpath, name or css selectoralias
- If this word is found in the step, it means the selectorValue is found
from the data set.selectorValue
- The value used in conjunction with the selector to match the element. If
alias was set, this value is found from the data set. Otherwise it is a
literal value.