@Component
public class FrameStepDefinition
extends java.lang.Object
Constructor and Description |
---|
FrameStepDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
switchToDefaultContent()
Functionality depends on 2 scenarios:
- The control is within a frame set.
|
void |
switchToFrame(java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue)
Switches to the frame/iframe with given selector or alias.
|
@When(value="^I switch to (?:a|an|the) (?:frame|iframe) with (?:a|an|the) (ID|class|xpath|name|css selector)( alias)? of \"([^\"]*)\"") public void switchToFrame(java.lang.String selector, java.lang.String alias, java.lang.String selectorValue)
selector
- 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.@When(value="I switch to the default content") public void switchToDefaultContent()