Class TargetScenarioItem
java.lang.Object
com.vaadin.copilot.testbenchgenerator.TestBenchScenarioItem
com.vaadin.copilot.testbenchgenerator.TargetScenarioItem
- Direct Known Subclasses:
TargetAssertionScenarioItem,TargetEvent
Represents a scenario item that targets a specific UI element within a
TestBench test scenario.
This class extends TestBenchScenarioItem and contains metadata and
selection strategies for identifying a particular element in the DOM. It is
typically used during the generation or execution of automated UI tests,
where identifying the right element and selector is crucial.
The following key attributes define the targeted element:
targetElementIdentifier- A unique identifier string used to generate a variable name for the element.targetElementLocalName- The local (tag) name of the targeted DOM element, such asdiv,vaadin-button, etc.classInfo- Contains reflective or structural information about the Java class representing the target element.possibleSelectors- A set of possible CSS or DOM-based selectors that can be used to locate the target element during test execution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetClassInfo(TestBenchElementClassInfo classInfo) voidsetPossibleSelectors(PossibleSelectors possibleSelectors) voidsetTargetElementIdentifier(String targetElementIdentifier) voidsetTargetElementLocalName(String targetElementLocalName) Methods inherited from class com.vaadin.copilot.testbenchgenerator.TestBenchScenarioItem
getType, getUuid, setType, setUuid
-
Constructor Details
-
TargetScenarioItem
public TargetScenarioItem()
-
-
Method Details
-
getTargetElementLocalName
-
setTargetElementLocalName
-
getClassInfo
-
setClassInfo
-
getPossibleSelectors
-
setPossibleSelectors
-
getTargetElementIdentifier
-
setTargetElementIdentifier
-