HTMLElement
interface. These elements are as follows:HEAD special: SUB, SUP, SPAN, BDOfont: TT, I, B, U, S, STRIKE, BIG, SMALL phrase: EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ACRONYM, ABBRlist: DD, DTNOFRAMES, NOSCRIPTADDRESS, CENTER Note. The style
attribute for thisinterface is reserved for future usage.
Date: Feb 4, 2006 @author Rakesh Kalra
@Name("Search Form") @Block(@FindBy(css = "form_css")) public class SearchForm extends HtmlElement { @Name("Request Input") @FindBy(css = "request_input_css") private TextInput requestInput; @Name("Search Button") @FindBy(css = "search_button_css") private Button searchButton; public TextInput getRequestInput() { return requestInput; } public Button getSearchButton() { return searchButton; } }Then you can use created blocks as fields of page objects or you can also initialize them directly with methods of {@link ru.yandex.qatools.htmlelements.loader.HtmlElementLoader} class. Note that this class implements {@link WebElement} interface so you can substitute instances of your block classesfor {@code WebElements} where it's necessary. @author Artem Eroshenko eroshenkoam@yandex-team.ru @author Artem Koshelev artkoshelev@yandex-team.ru @author Alexander Tolmachev starlight@yandex-team.ru
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|