public class FormWebDriverSubStepImplementations extends AbstractWebDriverSubStepImplementations
| Constructor and Description |
|---|
FormWebDriverSubStepImplementations() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertOptionIsNotSelected(String id,
String value) |
void |
assertOptionIsSelected(String id,
String value) |
void |
assertRadioButton(String name,
String text,
Boolean checked)
Deprecated.
use AssertRadioButton checked=true
|
void |
chooseOptionByTextInSelect(String value,
org.openqa.selenium.WebElement selectElement)
choose an option by visible text within a select
|
void |
clearAndSendKeys(String value)
Clear any text from the element, and enter text (to the current element)
|
void |
selectValueInCurrentElement(String value)
Select a value in the option list in the current element, a Find
operation is required immediatebly before
|
void |
selectValueInId(String value,
String id)
Select a value in the option list that has the id
|
void |
sendKey(String key)
Enters the given key into the current element, without clearing any current content
Note this is to be used for 'special' keys defined by org.openqa.selenium.Keys
|
void |
sendKeys(String value)
Enters text to the current element, without clearing any current content
first
|
void |
sendKeysById(String value,
String id)
Find an element by id, clear any text from the element, and enter text
|
protected void |
setCheckboxValue(org.openqa.selenium.WebElement checkboxField,
boolean value)
Sets the checkbox value.
|
void |
setRadioButton(String name,
String text)
Deprecated.
use SetRadioButton checked=true / false instead with an
apporpriate finder method
|
void |
setRadioButtonChecked(String checked)
Sets the value of the current element, assumed to be a radio button to...
|
void |
setRadioButtonValue(String name,
String value,
String checked)
Deprecated.
use "SetRadioButton checked=.." instead
|
void |
setSetCheckBox(String name,
String checked)
Deprecated.
use SetCheckedBox checked= true/false instead
|
void |
setSetCheckedBoxChecked(String checked)
Sets the value of the current element, assumed to be a checkbox to...
|
void |
submit()
Submit the form of the current element.
|
elementHasExpectedAttributes, getScreenshotBytes, webDriver, webDriverContextpublic void submit()
public void sendKeys(String value)
value - the valuepublic void sendKey(String key)
key - a value from Keyspublic void sendKeysById(String value, String id)
id - the idvalue - the valuepublic void clearAndSendKeys(String value)
value - the valuepublic void selectValueInId(String value, String id)
value - the valueid - the idpublic void chooseOptionByTextInSelect(String value, org.openqa.selenium.WebElement selectElement)
value - the value to be chosenselectElement - the select elementpublic void selectValueInCurrentElement(String value)
value - the value@Deprecated public void setRadioButtonValue(String name, String value, String checked)
name - the namevalue - the valuechecked - the checkedpublic void setRadioButtonChecked(String checked)
checked - the checkedpublic void setSetCheckedBoxChecked(String checked)
checked - the checked@Deprecated public void setRadioButton(String name, String text)
name - the nametext - text value@Deprecated public void assertRadioButton(String name, String text, Boolean checked)
name - the nametext - text valuechecked - true or false to indicate wether the checkbox is checked or
not@Deprecated public void setSetCheckBox(String name, String checked)
name - the namechecked - the checkedprotected void setCheckboxValue(org.openqa.selenium.WebElement checkboxField,
boolean value)
checkboxField - the checkbox fieldvalue - the valueCopyright © 2016 Substeps. All rights reserved.