Class TargetScenarioItem
java.lang.Object
com.vaadin.copilot.testrecordergenerator.TestRecorderScenarioItem
com.vaadin.copilot.testrecordergenerator.TargetScenarioItem
- Direct Known Subclasses:
TargetAssertionScenarioItem,TargetEvent
Represents a scenario item that targets a specific UI element within a
recorded test scenario.
This class extends TestRecorderScenarioItem 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 TypeMethodDescriptionvoidsetBrowserlessTarget(BrowserlessTargetDescriptor browserlessTarget) voidsetClassInfo(TestBenchElementClassInfo classInfo) voidsetFlowRef(FlowRef flowRef) voidsetPossibleSelectors(PossibleSelectors possibleSelectors) voidsetTargetElementIdentifier(String targetElementIdentifier) voidsetTargetElementLocalName(String targetElementLocalName) Methods inherited from class com.vaadin.copilot.testrecordergenerator.TestRecorderScenarioItem
getType, getUuid, setType, setUuid
-
Constructor Details
-
TargetScenarioItem
public TargetScenarioItem()
-
-
Method Details
-
getFlowRef
-
setFlowRef
-
getBrowserlessTarget
-
setBrowserlessTarget
-
getTargetElementLocalName
-
setTargetElementLocalName
-
getClassInfo
-
setClassInfo
-
getPossibleSelectors
-
setPossibleSelectors
-
getTargetElementIdentifier
-
setTargetElementIdentifier
-